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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user