Fixed that facedirutil.make_upsidedown(...) would trigger wrongly.

This commit is contained in:
Robert Zenz 2015-11-11 22:51:04 +01:00
parent bf606f4289
commit f7a898d19e

View File

@ -97,7 +97,7 @@ end
-- @param pointed_thing The nodes that the placed pointed at. -- @param pointed_thing The nodes that the placed pointed at.
function facedirutil.make_upsidedown(pos, placer, itemstack, pointed_thing) function facedirutil.make_upsidedown(pos, placer, itemstack, pointed_thing)
-- Check if the placed did lock at the underside of a node. -- Check if the placed did lock at the underside of a node.
if pos.y == pointed_thing.above.y if pos.y == pointed_thing.under.y - 1
and pos.x == pointed_thing.under.x and pos.x == pointed_thing.under.x
and pos.z == pointed_thing.under.z then and pos.z == pointed_thing.under.z then