Added support for rotating wooden logs

This commit is contained in:
ragd 2012-08-24 19:46:39 +02:00 committed by TomyLobo
parent 36fa04b739
commit b2ff0fb2a2

View File

@ -143,6 +143,10 @@ public final class BlockData {
} }
break; break;
case BlockID.LOG:
if (data >= 4 && data <= 11) data ^= 0xc;
break;
case BlockID.REDSTONE_REPEATER_OFF: case BlockID.REDSTONE_REPEATER_OFF:
case BlockID.REDSTONE_REPEATER_ON: case BlockID.REDSTONE_REPEATER_ON:
int dir = data & 0x03; int dir = data & 0x03;
@ -313,6 +317,10 @@ public final class BlockData {
} }
break; break;
case BlockID.LOG:
if (data >= 4 && data <= 11) data ^= 0xc;
break;
case BlockID.REDSTONE_REPEATER_OFF: case BlockID.REDSTONE_REPEATER_OFF:
case BlockID.REDSTONE_REPEATER_ON: case BlockID.REDSTONE_REPEATER_ON:
int dir = data & 0x03; int dir = data & 0x03;