1
0
зеркало из https://github.com/sys4-fr/server-nalc.git synced 2025-10-16 07:35:24 +02:00

fixed itemstack remove broomstick

Этот коммит содержится в:
2015-06-23 21:08:01 +02:00
родитель 030972d3b5
Коммит 3ec5522d06

Просмотреть файл

@@ -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 " ..