Skip to content

Commit

Permalink
Fix linked chests not disconnecting properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Dec 2, 2023
1 parent 9366185 commit 9ef3d11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions maps/mountain_fortress_v3/icw/linked_chests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,8 @@ Event.on_nth_tick(
if container.chest.surface.index == active_surface_index then
if not WPT.locomotive.is_around_train(container.chest) then
container.chest.minable = true
container.chest.link_id = 9999
container.chest.get_inventory(defines.inventory.chest).set_bar(1)
remove_chest(container.unit_number)
goto continue
end
Expand Down

0 comments on commit 9ef3d11

Please sign in to comment.