remove debug statements

This commit is contained in:
Jordach 2017-12-11 17:38:29 +00:00
parent bc8ad61b6b
commit 795b122b5f

View File

@ -175,17 +175,11 @@ function mcore.sensible_facedir(itemstack, placer, pointed_thing)
local pz = math.abs(placer:get_pos().z - rpos.z)
print(px)
print(pz)
if px < 2 and pz < 2 then -- if the node is being placed 1 block away from us, then lets place it either upright or upside down
local pY = math.abs(placer:get_pos().y + 1.14) -- we measure the y distance by itself as it may not be needed for wall placed blocks.
print(pY)
if pY - math.abs(rpos.y) > 1 then -- are we being placed on the floor? let's be upright then.
if pY - math.abs(rpos.y) > 2 then -- are we being placed on the floor? let's be upright then.
if deg_to_fdir == 0 then fdir = 0 -- north
elseif deg_to_fdir == 1 then fdir = 3 --east