1
0
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:
LeMagnesium 2015-08-26 16:12:29 +02:00
parent 5c0525d221
commit facc0f4b5a

View File

@ -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,
})