Fixed head rotation.

This commit is contained in:
TomyLobo 2013-10-01 23:43:24 +02:00
parent 6c4d2e2d8e
commit 696a2819a7

View File

@ -231,6 +231,14 @@ public final class BlockData {
case BlockID.BED: case BlockID.BED:
return data & ~0x3 | (data + 1) & 0x3; return data & ~0x3 | (data + 1) & 0x3;
case BlockID.HEAD:
switch (data) {
case 2: return 5;
case 3: return 4;
case 4: return 2;
case 5: return 3;
}
} }
return data; return data;
@ -441,6 +449,14 @@ public final class BlockData {
case BlockID.BED: case BlockID.BED:
return data & ~0x3 | (data - 1) & 0x3; return data & ~0x3 | (data - 1) & 0x3;
case BlockID.HEAD:
switch (data) {
case 2: return 4;
case 3: return 5;
case 4: return 3;
case 5: return 2;
}
} }
return data; return data;
@ -735,6 +751,17 @@ public final class BlockData {
return data ^ flipX << 1; return data ^ flipX << 1;
} }
break; break;
case BlockID.HEAD:
switch (data) {
case 2:
case 3:
return data ^ flipZ;
case 4:
case 5:
return data ^ flipX;
}
break;
} }
return data; return data;