Added support for rotating wooden logs

Dieser Commit ist enthalten in:
ragd 2012-08-24 19:46:39 +02:00 committet von TomyLobo
Ursprung 36fa04b739
Commit b2ff0fb2a2

Datei anzeigen

@ -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;