From 417e8e5896b125999071d589bda2dec808e671af Mon Sep 17 00:00:00 2001 From: rnd1 Date: Fri, 30 Sep 2016 22:37:50 +0200 Subject: [PATCH] long range check: head position fix --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 3ef3e01..0079bae 100644 --- a/init.lua +++ b/init.lua @@ -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));