Skip to content

Commit

Permalink
Added a migration to clean any remaining bugged bioport graphics
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Feb 2, 2024
1 parent 98877c5 commit 9858b6f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 7 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
---------------------------------------------------------------------------------------------------
Version: 2.1.22
Date: ???
Fixes:
- Added a migration to clean any remaining bugged bioport graphics
---------------------------------------------------------------------------------------------------
Version: 2.1.21
Date: 2024-2-3
Date: 2024-2-2
Fixes:
- Fixed ulric man light cone starting from the wrong location. (https://github.com/pyanodon/pybugreports/issues/385)
---------------------------------------------------------------------------------------------------
Version: 2.1.20
Date: 2024-2-2
Date: 2024-2-1
Fixes:
- Prevented biofluid bots from being effected (affected?) by belts. https://github.com/pyanodon/pybugreports/issues/392
- Fixed crash with mounts. https://github.com/pyanodon/pybugreports/issues/389
Expand Down
8 changes: 8 additions & 0 deletions migrations/2.1.22.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
for _, surface in pairs(game.surfaces) do
for _, arm in pairs(surface.find_entities_filtered{name = 'bioport-floor-animation'}) do
local port = surface.find_entity('bioport', arm.position)
if not (port and port.position.x == arm.position.x and port.position.y == arm.position.y) then
arm.destroy()
end
end
end

0 comments on commit 9858b6f

Please sign in to comment.