Be sure not to skip nodes.

master
Beha 2017-03-25 22:57:49 -04:00
parent 16312b1ce1
commit d04443bd67
1 changed files with 1 additions and 1 deletions

View File

@ -811,7 +811,7 @@ local box_entity = {
self.lastpos = self.lastpos or pos
-- Loop through all travelled nodes.
for y=self.lastpos.y,pos.y,((self.lastpos.y > pos.y) and -0.5 or 0.5) do
for y=self.lastpos.y,pos.y,((self.lastpos.y > pos.y) and -0.3 or 0.3) do
local p = vector.round({x=pos.x, y=y, z=pos.z})
local node = get_node(p)
if node.name == "elevator:shaft" then