Skip to content

Commit

Permalink
Fixed Y offset not being taken into account for buttons/levers
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Nov 10, 2017
1 parent 1a707e4 commit 53400dc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -298,7 +298,7 @@ private static void handleRedstoneForBlock(Block block, int oldLevel, int newLev
if(button != null) {
BlockFace face = button.getAttachedFace();
if(face != null)
handleDirectWireInput(new WorldVector(w, x + face.getModX()*2, y, z + face.getModZ()*2), block, oldLevel, newLevel);
handleDirectWireInput(new WorldVector(w, x + face.getModX()*2, y + face.getModY()*2, z + face.getModZ()*2), block, oldLevel, newLevel);
}
break;
case BlockID.POWERED_RAIL:
Expand Down

0 comments on commit 53400dc

Please sign in to comment.