Skip to content

Commit

Permalink
fix train factory crash
Browse files Browse the repository at this point in the history
  • Loading branch information
kingarthur91 committed Nov 26, 2023
1 parent 1ae2723 commit 7fd050e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Version: 0.2.16
Date: ?
Changes:
- fix crash with transport drones compatibility
- fix crash with train factory mod
---------------------------------------------------------------------------------------------------
Version: 0.2.15
Date: 2023-11-21
Expand Down
4 changes: 4 additions & 0 deletions prototypes/functions/compatibility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ if mods['Transport_Drones'] then
end
end

if mods['trainfactory'] then
data.raw['train-stop']['trainfactory-trainstop'].next_upgrade = nil
end

if mods['miniloader'] then
TECHNOLOGY('miniloader'):add_pack('py-science-pack-1'):add_pack('logistic-science-pack')
TECHNOLOGY('fast-miniloader'):add_pack('py-science-pack-2')
Expand Down

0 comments on commit 7fd050e

Please sign in to comment.