summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-05 11:43:02 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-05 11:43:41 -0400
commiteab59bfe19209f17892aa87e844990b0b60484b3 (patch)
tree1d3bd6b065861544f6aa09d443efbaeeb4ae9354
parent00561161480e51632a0c546cf34fc62282c9fe06 (diff)
downloadpipeworks-eab59bfe19209f17892aa87e844990b0b60484b3.tar
pipeworks-eab59bfe19209f17892aa87e844990b0b60484b3.tar.gz
pipeworks-eab59bfe19209f17892aa87e844990b0b60484b3.tar.bz2
pipeworks-eab59bfe19209f17892aa87e844990b0b60484b3.tar.xz
pipeworks-eab59bfe19209f17892aa87e844990b0b60484b3.zip
always set item start pos on reverse.
-rw-r--r--item_transport.lua1
1 files changed, 1 insertions, 0 deletions
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