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:
parent
030972d3b5
commit
3ec5522d06
@ -43,7 +43,8 @@ minetest.register_craftitem("broomstick:broomstick", {
|
|||||||
is_warning_said = false
|
is_warning_said = false
|
||||||
})
|
})
|
||||||
-- Remove broomstick...
|
-- Remove broomstick...
|
||||||
return ItemStack("")
|
local item_count = user:get_wielded_item():get_count()
|
||||||
|
return ItemStack("broomstick:broomstick ".. tostring(item_count-1))
|
||||||
else
|
else
|
||||||
minetest.chat_send_player(playername, "You already have a " ..
|
minetest.chat_send_player(playername, "You already have a " ..
|
||||||
"broomstick ! Please wait until the end of your actual " ..
|
"broomstick ! Please wait until the end of your actual " ..
|
||||||
|
Loading…
Reference in New Issue
Block a user