diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-05 11:43:02 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-05 11:43:41 -0400 |
commit | eab59bfe19209f17892aa87e844990b0b60484b3 (patch) | |
tree | 1d3bd6b065861544f6aa09d443efbaeeb4ae9354 | |
parent | 00561161480e51632a0c546cf34fc62282c9fe06 (diff) | |
download | pipeworks-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.lua | 1 |
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 |