mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2024-12-26 22:56:43 +02:00
Mtn v3 - fix minor bug
This commit is contained in:
parent
4483be315e
commit
cbeedc3cce
@ -985,9 +985,10 @@ Event.on_nth_tick(
|
||||
120,
|
||||
function()
|
||||
local containers = this.main_containers
|
||||
local loco_surface = WPT.get('loco_surface')
|
||||
local active_surface_index = WPT.get('active_surface_index')
|
||||
|
||||
for index, container in pairs(containers) do
|
||||
if container and container.chest and container.chest.valid and container.chest.surface.index ~= loco_surface.index then
|
||||
if container and container.chest and container.chest.valid and container.chest.surface.index == active_surface_index then
|
||||
if not WPT.locomotive.is_around_train(container.chest) then
|
||||
remove_chest(container.unit_number)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user