Skip to content

Commit

Permalink
Fixed crash when upgrading blueprints #978
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Jun 16, 2024
1 parent bd270d4 commit d6d2298
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -3,6 +3,7 @@ Version: 0.12.8
Date: ???
Bugfixes:
- Fixed when placing an electric offshore waterpump over its ghost, the module request would be forgotten (973)
- Fixed crash when upgrading blueprints (978)
Changes:
- Added Ore Sorting Facility 5. Catalyst sorting requires a higher tier ore sorting facility (979)
---------------------------------------------------------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions angelsrefining/src/sea-pump.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ function sea_pump:on_blueprint_setup(player_index)
end
end

-- type may be 'upgrade-item'
if blueprint.type ~= 'blueprint' then
return
end

-- obtain all blueprint entitites
local entities = blueprint.get_blueprint_entities()
if entities == nil then
Expand Down

0 comments on commit d6d2298

Please sign in to comment.