mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-05 01:50:25 +01:00
Flush both graveyards when using chatcommand
This commit is contained in:
parent
5c0525d221
commit
facc0f4b5a
|
@ -59,6 +59,7 @@ minetest.register_chatcommand("clear_graveyard", {
|
|||
func = function(name, param)
|
||||
local grave_inv = minetest.get_inventory({type = "detached", name = name .. "_graveyard"})
|
||||
grave_inv:set_list("graveyard", {})
|
||||
minetest.get_player_by_name(name):get_inventory():set_list("graveyard", {})
|
||||
return true, "Graveyard flushed"
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user