noita_entangled_worlds/quant.ew/files/resource/cbs/chest_sync.lua

12 lines
247 B
Lua
Raw Normal View History

2024-11-18 07:18:35 -05:00
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