Hide internal detached inventory functions (#14594)

This commit is contained in:
OgelGames 2024-04-28 08:07:45 +10:00 committed by GitHub
parent c63c05b141
commit a7bde8e523
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2,6 +2,9 @@
core.detached_inventories = {}
local create_detached_inventory_raw = core.create_detached_inventory_raw
core.create_detached_inventory_raw = nil
function core.create_detached_inventory(name, callbacks, player_name)
local stuff = {}
stuff.name = name
@ -15,10 +18,13 @@ function core.create_detached_inventory(name, callbacks, player_name)
end
stuff.mod_origin = core.get_current_modname() or "??"
core.detached_inventories[name] = stuff
return core.create_detached_inventory_raw(name, player_name)
return create_detached_inventory_raw(name, player_name)
end
local remove_detached_inventory_raw = core.remove_detached_inventory_raw
core.remove_detached_inventory_raw = nil
function core.remove_detached_inventory(name)
core.detached_inventories[name] = nil
return core.remove_detached_inventory_raw(name)
return remove_detached_inventory_raw(name)
end