Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
pindab0ter committed Dec 5, 2024
2 parents f8ebdcc + ad54f9a commit 1d67987
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---------------------------------------------------------------------------------------------------
Version: 0.2.7
Date: 2024-12-05
Bugfixes:
- Fix crash when removing a Nixie Tube from a space platform
- Fix crash when deleting a surface with Nixie Tubes on it
---------------------------------------------------------------------------------------------------
Version: 0.2.6
Date: 2024-11-29
Bugfixes:
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": "UPSFriendlyNixieTubeDisplay",
"version": "0.2.6",
"version": "0.2.7",
"factorio_version": "2.0",
"title": "UPS Friendly Nixie Tubes",
"author": "Red_Wizard, pindab0ter",
Expand Down
8 changes: 7 additions & 1 deletion scripts/nixie_tube.lua
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,12 @@ local function on_tick(_)
storage.next_controller_unit_number, controller = next(storage.controllers)
end

-- If no player is able to see Nixie Tubes on this surface, skip the update
if not controller.entity.valid then
reconfigure_nixie_tubes()
break
end

-- If no player is abl see Nixie Tubes on this surface, skip the update
if eyes_on_surface[controller.entity.surface_index] then
update_controller(controller)
end
Expand Down Expand Up @@ -554,6 +559,7 @@ local nixie_tube = {
[defines.events.on_entity_died] = on_object_destroyed,
[defines.events.on_player_mined_entity] = on_object_destroyed,
[defines.events.on_robot_mined_entity] = on_object_destroyed,
[defines.events.on_space_platform_mined_entity] = on_object_destroyed,
[defines.events.script_raised_destroy] = on_object_destroyed,
}
}
Expand Down

0 comments on commit 1d67987

Please sign in to comment.