noita_entangled_worlds/quant.ew/files/resource/cbs/chest_sync.lua
2024-11-18 07:18:35 -05:00

12 lines
No EOL
247 B
Lua

local old = on_open
function on_open(entity_item, dont)
if dont == nil then
CrossCall("ew_chest_opened", entity_item)
end
old(entity_item)
end
function init(entity_id)
on_open(entity_id, true)
EntityKill(entity_id)
end