mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2024-12-30 23:17:53 +02:00
Fix linked chests not disconnecting properly
This commit is contained in:
parent
936618569b
commit
9ef3d1123d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user