item_transport.lua: read extra multimode parameter from go_next callback

This commit is contained in:
thetaepsilon-gamedev 2017-12-18 22:07:53 +00:00
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)))