Skip to content

Commit

Permalink
fixed trains-stations tutorial would crash
Browse files Browse the repository at this point in the history
  • Loading branch information
LovelySanta committed Oct 17, 2024
1 parent 5dd7455 commit 659bf54
Show file tree
Hide file tree
Showing 57 changed files with 4,803 additions and 0 deletions.
1 change: 1 addition & 0 deletions angelsrefining/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Date: ???
- Fixed crash when upgrading blueprints (978)
- Fixed crash when removing 'angelspump' mod (test mod, merged into Angel's Refining) (992)
- Fixed crash on startup with error message No icon size defined for icon (997)
- Fixed crash when playing the trains-stations tutorial
Changes:
- Added Ore Sorting Facility 5. Catalyst sorting requires a higher tier ore sorting facility (979)
---------------------------------------------------------------------------------------------------
Expand Down
12 changes: 12 additions & 0 deletions angelsrefining/prototypes/tips-and-tricks/tips-and-tricks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@ require("prototypes.tips-and-tricks.1-1-3-leaching.1-1-3-leaching")
require("prototypes.tips-and-tricks.1-1-4-purification.1-1-4-purification")
require("prototypes.tips-and-tricks.1-2-ore-sorting.1-2-ore-sorting")
require("prototypes.tips-and-tricks.1-3-water-processing.1-3-water-processing")

-- modify base game tips-and-tricks to prevent crashes
if data.raw["tutorial"]["trains-stations"]["scenario"] == "trains-stations" then
data:extend({
{
type = "tutorial",
name = "angels-trains-stations",
scenario = "angels-trains-stations"
},
})
data.raw["tips-and-tricks-item"]["train-stops"]["tutorial"] = "angels-trains-stations"
end
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 659bf54

Please sign in to comment.