From 9858b6f6fd7ed4469dd10531c9a44610ef98fb31 Mon Sep 17 00:00:00 2001 From: notnotmelon Date: Fri, 2 Feb 2024 13:45:12 -0600 Subject: [PATCH] Added a migration to clean any remaining bugged bioport graphics --- changelog.txt | 9 +++++++-- migrations/2.1.22.lua | 8 ++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 migrations/2.1.22.lua diff --git a/changelog.txt b/changelog.txt index 9e5d9182..239d308c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/migrations/2.1.22.lua b/migrations/2.1.22.lua new file mode 100644 index 00000000..26640b64 --- /dev/null +++ b/migrations/2.1.22.lua @@ -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 \ No newline at end of file