1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-01-23 16:30:19 +01:00

fixed itemstack remove broomstick

This commit is contained in:
crabman77 2015-06-23 21:08:01 +02:00
parent 030972d3b5
commit 3ec5522d06

View File

@ -43,7 +43,8 @@ minetest.register_craftitem("broomstick:broomstick", {
is_warning_said = false
})
-- Remove broomstick...
return ItemStack("")
local item_count = user:get_wielded_item():get_count()
return ItemStack("broomstick:broomstick ".. tostring(item_count-1))
else
minetest.chat_send_player(playername, "You already have a " ..
"broomstick ! Please wait until the end of your actual " ..