forked from mtcontrib/maidroid
Fix
This commit is contained in:
parent
cc60e9ae17
commit
c03a8ded8b
8
api.lua
8
api.lua
@ -149,8 +149,12 @@ function maidroid.register_maidroid(product_name, def)
|
||||
inventory_image = def.inventory_image,
|
||||
stack_max = 1,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
minetest.add_entity(pointed_thing.above, product_name)
|
||||
return itemstack
|
||||
print(pointed_thing.under, pointed_thing.above)
|
||||
if pointed_thing.above ~= nil then
|
||||
minetest.add_entity(pointed_thing.above, product_name)
|
||||
return itemstack
|
||||
end
|
||||
return nil
|
||||
end
|
||||
})
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user