Skip to content

Commit

Permalink
Fixed a crash related to the upgrade planner.
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Oct 21, 2024
1 parent c7c4bfa commit 6e71ffc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 3.0.5
Date: 2024-10-21
Changes:
- Fixed a crash related to the upgrade planner.
---------------------------------------------------------------------------------------------------
Version: 3.0.4
Date: 2024-10-21
Changes:
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pypostprocessing",
"version": "3.0.4",
"version": "3.0.5",
"factorio_version": "2.0",
"title": "Pyanodons Post-processing",
"author": "Pyanodon, Shadowglass",
Expand Down
1 change: 1 addition & 0 deletions prototypes/next-upgrades.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ end
---@return boolean
local function can_be_upgraded(entity)
if not entity then return false end
if entity.hidden then return false end
if entity.joint_distance then return false end -- Exclude all trains.
if entity:has_flag("not-upgradable") then return false end
if not entity.fast_replaceable_group then return false end
Expand Down

0 comments on commit 6e71ffc

Please sign in to comment.