3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 18:40:05 +01:00

Fixed bed rotation.

Dieser Commit ist enthalten in:
TomyLobo 2013-10-01 23:43:24 +02:00
Ursprung 9220831ea4
Commit c750cc6871

Datei anzeigen

@ -225,6 +225,8 @@ public final class BlockData {
else if (data == 8) return 4; else if (data == 8) return 4;
else return 0; // sanitize extraneous data values since hay blocks are weird else return 0; // sanitize extraneous data values since hay blocks are weird
case BlockID.BED:
return data & ~0x3 | (data + 1) & 0x3;
} }
return data; return data;
@ -429,6 +431,8 @@ public final class BlockData {
else if (data == 8) return 4; else if (data == 8) return 4;
else return 0; else return 0;
case BlockID.BED:
return data & ~0x3 | (data - 1) & 0x3;
} }
return data; return data;
@ -707,6 +711,16 @@ public final class BlockData {
} }
break; break;
case BlockID.BED:
switch (data & 0x3) {
case 0:
case 2:
return data ^ flipZ << 1;
case 1:
case 3:
return data ^ flipX << 1;
}
break;
} }
return data; return data;