mirror of
				https://github.com/sys4-fr/server-nalc.git
				synced 2025-10-30 20:15:33 +01:00 
			
		
		
		
	fixed itemstack remove broomstick
This commit is contained in:
		| @@ -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 " .. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user