mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-29 17:17:29 +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
|
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))
|
print("[Pipeworks] Warning - tubed item had to reverse direction at "..minetest.pos_to_string(self.start_pos))
|
||||||
velocity = vector.multiply(velocity, -1)
|
velocity = vector.multiply(velocity, -1)
|
||||||
|
self:setpos(self.start_pos)
|
||||||
self:setvelocity(velocity)
|
self:setvelocity(velocity)
|
||||||
else
|
else
|
||||||
if drop_pos then
|
if drop_pos then
|
||||||
|
Loading…
Reference in New Issue
Block a user