diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-10-10 20:48:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-10 20:48:58 +0200 |
commit | 0a5e77132ae8c495c50cfc58bbe4ce1bfcd377e3 (patch) | |
tree | d60c7186893663e2556d6d9efc46c14fd4520b0f /builtin/game | |
parent | d6f2a1c4b8ab13cee92e2041b3410fe3548e88e6 (diff) | |
download | minetest-0a5e77132ae8c495c50cfc58bbe4ce1bfcd377e3.tar.gz minetest-0a5e77132ae8c495c50cfc58bbe4ce1bfcd377e3.tar.bz2 minetest-0a5e77132ae8c495c50cfc58bbe4ce1bfcd377e3.zip |
Add core.remove_detached_inventory (#7684)
Breaks backwards compatibility for good
Bump protocol version
Diffstat (limited to 'builtin/game')
-rw-r--r-- | builtin/game/detached_inventory.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/game/detached_inventory.lua b/builtin/game/detached_inventory.lua index 420e89ff2..2e27168a1 100644 --- a/builtin/game/detached_inventory.lua +++ b/builtin/game/detached_inventory.lua @@ -18,3 +18,7 @@ function core.create_detached_inventory(name, callbacks, player_name) return core.create_detached_inventory_raw(name, player_name) end +function core.remove_detached_inventory(name) + core.detached_inventories[name] = nil + return core.remove_detached_inventory_raw(name) +end |