long range check: head position fix

master
rnd1 2016-09-30 22:37:50 +02:00
parent aea61be84d
commit 417e8e5896
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ end)
local check_can_dig = function(pos, digger)
local p = digger:getpos();
if p.y<0 then p.y=p.y+2 else p.y=p.y+1 end -- head position
local dist = math.max(math.abs(p.x-pos.x),math.abs(p.y-pos.y),math.abs(p.z-pos.z));