Skip to content

Commit

Permalink
Armoured railway migration fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shm013 committed Apr 18, 2017
1 parent f683640 commit eaaa9f0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions UnChained_Tweaks_0.1.2/migrations/UnChained_Tweaks_0.1.2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ for index, force in pairs(game.forces) do
force.reset_recipes()
force.reset_technologies()

if technologies["bob-armoured-railway"].researched then
force.recipes["bob-armoured-diesel-locomotive"].enabled = false
force.recipes["bob-armoured-cargo-wagon"].enabled = false
end
if force.technologies["bob-armoured-railway-2"].researched then
force.recipes["bob-armoured-diesel-locomotive-2"].enabled = false
force.recipes["bob-armoured-cargo-wagon-2"].enabled = false
end
technologies["bob-armoured-railway"].enabled = false
force.recipes["bob-armoured-diesel-locomotive"].enabled = false
force.recipes["bob-armoured-cargo-wagon"].enabled = false
force.technologies["bob-armoured-railway-2"].enabled = false
force.recipes["bob-armoured-diesel-locomotive-2"].enabled = false
force.recipes["bob-armoured-cargo-wagon-2"].enabled = false

if force.technologies["bi-coal-processing-2"] then
force.recipes["bi-coke-coal"].enabled = false
end
Expand Down

0 comments on commit eaaa9f0

Please sign in to comment.