forked from mtcontrib/pipeworks
item_transport.lua: read extra multimode parameter from go_next callback
This commit is contained in:
parent
8fa259c93f
commit
d659cb38b3
|
@ -277,7 +277,7 @@ luaentity.register_entity("pipeworks:tubed_item", {
|
|||
end
|
||||
|
||||
if moved then
|
||||
local found_next, new_velocity = go_next(self.start_pos, velocity, stack, self.owner) -- todo: color
|
||||
local found_next, new_velocity, multimode = go_next(self.start_pos, velocity, stack, self.owner) -- todo: color
|
||||
local rev_vel = vector.multiply(velocity, -1)
|
||||
local rev_dir = vector.direction(self.start_pos,vector.add(self.start_pos,rev_vel))
|
||||
local rev_node = minetest.get_node(vector.round(vector.add(self.start_pos,rev_dir)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user