forked from VoxeLibre/VoxeLibre
Fix dispenser and dropper crashing in 5.4
This commit is contained in:
parent
70656b42dc
commit
34ecb782a8
|
@ -261,7 +261,7 @@ local dispenserdef = {
|
|||
local item_entity = minetest.add_item(droppos, dropitem)
|
||||
local drop_vel = vector.subtract(droppos, pos)
|
||||
local speed = 3
|
||||
item_entity:set_velocity(drop_vel * speed)
|
||||
item_entity:set_velocity(vector.multiply(drop_vel,speed))
|
||||
end
|
||||
else
|
||||
stack:take_item()
|
||||
|
@ -278,7 +278,7 @@ local dispenserdef = {
|
|||
local item_entity = minetest.add_item(droppos, dropitem)
|
||||
local drop_vel = vector.subtract(droppos, pos)
|
||||
local speed = 3
|
||||
item_entity:set_velocity(drop_vel * speed)
|
||||
item_entity:set_velocity(vector.multiply(drop_vel,speed))
|
||||
stack:take_item()
|
||||
inv:set_stack("main", stack_id, stack)
|
||||
end
|
||||
|
|
|
@ -143,7 +143,7 @@ local dropperdef = {
|
|||
local item_entity = minetest.add_item(droppos, dropitem)
|
||||
local drop_vel = vector.subtract(droppos, pos)
|
||||
local speed = 3
|
||||
item_entity:set_velocity(drop_vel * speed)
|
||||
item_entity:set_velocity(vector.multiply(drop_vel,speed))
|
||||
stack:take_item()
|
||||
inv:set_stack("main", stack_id, stack)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue