summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-03-29 15:25:05 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-03-29 15:25:05 -0400
commit0e8a82fdba147bd6507f10226883dfa1936ab3ec (patch)
treed7d28a2eb52bc75dc79896d2df5e969ffc3a380c
parentb46231f543f1e57cfc3b35249f31a42945435493 (diff)
downloadpipeworks-0e8a82fdba147bd6507f10226883dfa1936ab3ec.tar
pipeworks-0e8a82fdba147bd6507f10226883dfa1936ab3ec.tar.gz
pipeworks-0e8a82fdba147bd6507f10226883dfa1936ab3ec.tar.bz2
pipeworks-0e8a82fdba147bd6507f10226883dfa1936ab3ec.tar.xz
pipeworks-0e8a82fdba147bd6507f10226883dfa1936ab3ec.zip
add a warning if a tubed item turns around
(too many means that something is wrong with that tube circuit)
-rw-r--r--item_transport.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/item_transport.lua b/item_transport.lua
index ab1ce55..c89eaf5 100644
--- a/item_transport.lua
+++ b/item_transport.lua
@@ -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