1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-11-06 09:09:26 +02:00

fixed error when opened chests is destroyed

This commit is contained in:
grilledham
2018-06-24 23:21:27 +01:00
parent 23151e3aa8
commit feb416fb05

View File

@@ -157,9 +157,17 @@ chest_gui_content_callback =
return
end
local entity = data.chest.entity
if not entity.valid then
player.opened = nil
opened.destroy()
return
end
if not player.connected then
player.opened = nil
opened.destroy()
return
end
opened.clear()