1
0
鏡像自 https://github.com/tacigar/maidroid.git 已同步 2025-10-17 06:35:20 +02:00

Fix item use bug

此提交包含在:
tacigar
2016-12-21 20:38:40 +09:00
父節點 29bb2a8752
當前提交 d811ecc9cb

查看文件

@@ -263,9 +263,10 @@ function maidroid.register_egg(egg_name, def)
inventory_image = def.inventory_image,
stack_max = 1,
on_use = function(item_stack, user, pointed_thing)
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.above ~= nil and def.product_name ~= nil then
minetest.add_entity(pointed_thing.above, def.product_name)
itemstack:take_item()
return itemstack
end
return nil