mirror of
https://github.com/tacigar/maidroid.git
synced 2025-01-10 16:20:19 +01:00
Fix maidroid.register_egg API
This commit is contained in:
parent
91e2242e06
commit
2231babc56
@ -285,7 +285,7 @@ function maidroid.register_egg(egg_name, def)
|
|||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
|
|
||||||
on_use = function(item_stack, user, pointed_thing)
|
on_use = function(item_stack, user, pointed_thing)
|
||||||
if pointed_thing.above ~= nil then
|
if pointed_thing.above ~= nil and def.product_name ~= nil then
|
||||||
minetest.add_entity(pointed_thing.above, def.product_name)
|
minetest.add_entity(pointed_thing.above, def.product_name)
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user