From eab59bfe19209f17892aa87e844990b0b60484b3 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 5 Apr 2017 11:43:02 -0400 Subject: always set item start pos on reverse. --- item_transport.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/item_transport.lua b/item_transport.lua index 4f8d5d6..12d9e7a 100644 --- a/item_transport.lua +++ b/item_transport.lua @@ -267,6 +267,7 @@ luaentity.register_entity("pipeworks:tubed_item", { if minetest.get_item_group(rev_node.name,"tube") == 1 then print("[Pipeworks] Warning - tubed item had to reverse direction at "..minetest.pos_to_string(self.start_pos)) velocity = vector.multiply(velocity, -1) + self:setpos(self.start_pos) self:setvelocity(velocity) else if drop_pos then -- cgit v1.2.3