mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-27 18:39:34 +01:00
Fix crash when dispensing spawn egg
This commit is contained in:
parent
c54019a8ab
commit
8950455026
1 changed files with 1 additions and 2 deletions
|
@ -388,8 +388,7 @@ local dispenserdef = {
|
|||
-- Place spawn egg
|
||||
if not dropnodedef.walkable then
|
||||
pointed_thing = { above = droppos, under = { x=droppos.x, y=droppos.y-1, z=droppos.z } }
|
||||
|
||||
minetest.registered_items[iname].on_place(ItemStack(iname), nil, pointed_thing)
|
||||
minetest.add_entity(droppos, stack:get_name())
|
||||
|
||||
stack:take_item()
|
||||
inv:set_stack("main", stack_id, stack)
|
||||
|
|
Loading…
Reference in a new issue