Remove core.remove_detached_inventory (#193)

master
luk3yx 2020-12-21 04:40:51 +13:00 committed by GitHub
parent 04afd56375
commit 49d200d086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View File

@ -17,8 +17,3 @@ function core.create_detached_inventory(name, callbacks, player_name)
core.detached_inventories[name] = stuff
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

View File

@ -2865,8 +2865,6 @@ and `minetest.auth_reload` call the authetification handler.
Note that this parameter is mostly just a workaround and will be removed
in future releases.
* Creates a detached inventory. If it already exists, it is cleared.
* `minetest.remove_detached_inventory(name)`
* Returns a `boolean` indicating whether the removal succeeded.
* `minetest.do_item_eat(hp_change, replace_with_item, poison, itemstack, user, pointed_thing)`:
returns left over ItemStack
* See `minetest.item_eat` and `minetest.register_on_item_eat`