Skip to content

Commit

Permalink
Fix crash on load
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Jun 6, 2024
1 parent 139a8d9 commit 127f9a2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion prototypes/updates/pycoalprocessing-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ITEM('crushed-copper'):add_flag('hidden')
ITEM('crushed-iron'):add_flag('hidden')

RECIPE('coke-coal'):remove_unlock('coal-processing-1'):add_unlock('coke-mk01'):replace_ingredient('coal', 'raw-coal')
RECIPE('fuelrod-mk01'):remove_unlock('advanced-material-processing-2'):set_fields{hidden = true}
if RECIPE['fuelrod-mk01'] then RECIPE('fuelrod-mk01'):remove_unlock('advanced-material-processing-2'):set_fields{hidden = true} end
--RECIPE('advanced-foundry-mk01'):remove_unlock('nexelit'):add_unlock('smelters-mk01')
if not mods['pypetroleumhandling'] then
RECIPE('filtration-media'):remove_unlock('advanced-oil-processing'):add_unlock('filtration')
Expand Down
30 changes: 17 additions & 13 deletions prototypes/updates/pyfusionenergy-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RECIPE("jig-mk01"):remove_unlock("diamond-mining"):add_unlock("titanium-mk02")
RECIPE("jig-mk01"):add_ingredient({type = "item", name = "stainless-steel", amount = 20}):replace_ingredient('advanced-circuit', 'electronic-circuit'):replace_ingredient('electric-engine-unit','engine-unit')
RECIPE("control-unit"):replace_ingredient("iron-plate", "stainless-steel")

RECIPE('u-79'):replace_result("dirty-water-heavy", "u-waste")
if RECIPE['u-79'] then RECIPE('u-79'):replace_result("dirty-water-heavy", "u-waste") end

RECIPE("centrifugal-pan-mk01"):remove_unlock("diamond-mining"):add_unlock("machines-mk03"):replace_ingredient("advanced-circuit", "electronic-circuit")

Expand Down Expand Up @@ -457,16 +457,22 @@ RECIPE("tin-pulp-01"):replace_ingredient("nitrogen", "soda-ash").category = 'pan
RECIPE("tin-pulp-02"):add_ingredient({type = 'fluid', name = 'pressured-air', amount = 250})
RECIPE("tin-slime-overflow").category = 'thickener'
RECIPE("tin-slime").category = 'hydrocyclone'
RECIPE("u-15-2").category = 'thickener'
RECIPE("u-23").category = 'thickener'
RECIPE("u-33").category = 'thickener'
RECIPE("u-50").category = 'hydrocyclone'
RECIPE("u-65").category = 'hydrocyclone'
RECIPE("u-70").category = 'thickener'
RECIPE("u-73").category = 'mixer'
RECIPE("u-79"):replace_ingredient("organic-solvent", "industrial-solvent")
RECIPE("u-81"):replace_ingredient("water", "soda-ash")
RECIPE("u-83").category = 'agitator'

if not mods.pyalternativeenergy then
RECIPE("u-15-2").category = 'thickener'
RECIPE("u-23").category = 'thickener'
RECIPE("u-33").category = 'thickener'
RECIPE("u-50").category = 'hydrocyclone'
RECIPE("u-65").category = 'hydrocyclone'
RECIPE("u-70").category = 'thickener'
RECIPE("u-73").category = 'mixer'
RECIPE("u-79"):replace_ingredient("organic-solvent", "industrial-solvent")
RECIPE("u-81"):replace_ingredient("water", "soda-ash")
RECIPE("u-83").category = 'agitator'
RECIPE("fuelrod-mk01-2"):replace_ingredient("niobium-plate", {type = "item", name = "lead-container", amount = 1})
RECIPE("fuelrod-mk01-3"):replace_ingredient("niobium-plate", {type = "item", name = "lead-container", amount = 1})
end

RECIPE("u-pulp-02").category = 'agitator'
RECIPE("u-rich-pulp").category = 'agitator'
RECIPE("zinc-overflow").category = 'jig'
Expand All @@ -477,8 +483,6 @@ RECIPE("zinc-pulp-04"):add_ingredient({type = 'fluid', name = 'soda-ash', amount
RECIPE("zinc-pulp-04-2").category = 'thickener'

RECIPE("fuelrod-mk01-1"):replace_ingredient("titanium-plate", {type = "item", name = "lead-container", amount = 1})
RECIPE("fuelrod-mk01-2"):replace_ingredient("niobium-plate", {type = "item", name = "lead-container", amount = 1})
RECIPE("fuelrod-mk01-3"):replace_ingredient("niobium-plate", {type = "item", name = "lead-container", amount = 1})
RECIPE("fuelrod-mk02"):replace_ingredient("titanium-plate", {type = "item", name = "lead-container", amount = 1})
RECIPE("fuelrod-mk03"):replace_ingredient("lead-plate", {type = "item", name = "lead-container", amount = 1})
RECIPE("fuelrod-mk04"):replace_ingredient("zinc-plate", {type = "item", name = "coated-container", amount = 1})
Expand Down
2 changes: 1 addition & 1 deletion prototypes/updates/pyhightech-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,6 @@ RECIPE("mibc"):replace_ingredient('aromatics','acetone')
RECIPE("nexelit-pulp-02"):replace_ingredient("syngas", "acetone")
RECIPE("outlet-gas-04"):add_ingredient({type = "fluid", name = "tall-oil", amount = 50})
RECIPE("slz-pulp-01"):replace_ingredient('water', 'cyanic-acid')
RECIPE("u-83"):replace_ingredient("nitrogen", "ammonia")
if RECIPE['u-83'] then RECIPE("u-83"):replace_ingredient("nitrogen", "ammonia") end
RECIPE("xylenol-2"):add_ingredient({type = "item", name = "phenol", amount = 10})
RECIPE("z3-reagent"):replace_ingredient("sulfuric-acid", "phosphorous-acid"):replace_ingredient("organic-solvent", "carbon-sulfide")

0 comments on commit 127f9a2

Please sign in to comment.