This commit is contained in:
Novatux 2014-08-14 22:02:36 +02:00
parent 15db1d23cc
commit bf6fe237de
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ local function go_next(pos, velocity, stack)
local tube_priority = (tube_def and tube_def.priority) or 100
if tubedevice > 0 and tube_priority >= max_priority then
if not tube_def or not tube_def.can_insert or
tubedef.can_insert(npos, node, stack, vect) then
tube_def.can_insert(npos, node, stack, vect) then
if tube_priority > max_priority then
max_priority = tube_priority
next_positions = {}