Skip to content

Commit

Permalink
Fix heavy pumps crashing new seablock maps (#317)
Browse files Browse the repository at this point in the history
* angelsrefining creates a custom resource for heavy water.  This code would remove that custom resource on new map gen, causing pumps to crash.

* Fix heavy pumps crashing new seablock maps #317

* Updating changelog #317

---------

Co-authored-by: KiwiHawk <[email protected]>
  • Loading branch information
dmeltzer and KiwiHawk authored Jan 13, 2024
1 parent 8b4900b commit 7bcc387
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions SeaBlock/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Date: ???
Bugfixes:
- Fixed Landfill tech being automatically researched #312
- Fixed AAI Loaders compatibility #315
- Fixed placement of heavy offshore pumps crashing new seablock maps #317
---------------------------------------------------------------------------------------------------
Version: 0.5.14
Date: 22.12.2023
Expand Down
8 changes: 4 additions & 4 deletions SeaBlock/data-updates/misc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ end
-- Remove resources so mining recipes don't show in FNEI
-- Have to leave at least one resource or game will not load
for k, v in pairs(data.raw["resource"]) do
if k == "coal" then
v.minable.result = nil
v.minable.results = nil
else
-- Sea-pump-resource is a virtual resource.
-- When the offshore pump is placed, it is supposed to be replaced by the resource and a mining-drill.
-- Removing the resource causes placement of heavy pumps to crash new maps.
if k ~= "sea-pump-resource" then
data.raw["resource"][k] = nil
end
end
Expand Down

0 comments on commit 7bcc387

Please sign in to comment.