mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-17 07:50:31 +01:00
always set item start pos on reverse.
This commit is contained in:
parent
0056116148
commit
eab59bfe19
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user