Fixed head rotation.

Dieser Commit ist enthalten in:
TomyLobo 2013-10-01 23:43:24 +02:00
Ursprung 6c4d2e2d8e
Commit 696a2819a7

Datei anzeigen

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