mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-09 17:03:58 +01:00
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:
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
|
||||
|
Loading…
Reference in New Issue
Block a user