add a warning if a tubed item turns around

(too many means that something is wrong with that tube circuit)
This commit is contained in:
Vanessa Ezekowitz 2017-03-29 15:25:05 -04:00
parent b46231f543
commit 0e8a82fdba

@ -262,6 +262,7 @@ luaentity.register_entity("pipeworks:tubed_item", {
return
end
else
print("[Pipeworks] Warning - tubed item had to reverse direction at "..minetest.pos_to_string(self.start_pos))
velocity = vector.multiply(velocity, -1)
self:setvelocity(velocity)
end