Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 02:50:05 +01:00
Fixed door rotation and disabled door y flipping.
Mojang radically changd the way doors work, so y flipping on a per-block basis is now impossible.
Dieser Commit ist enthalten in:
Ursprung
06ef568bdd
Commit
9220831ea4
@ -106,6 +106,13 @@ public final class BlockData {
|
|||||||
|
|
||||||
case BlockID.WOODEN_DOOR:
|
case BlockID.WOODEN_DOOR:
|
||||||
case BlockID.IRON_DOOR:
|
case BlockID.IRON_DOOR:
|
||||||
|
if ((data & 0x8) != 0) {
|
||||||
|
// door top halves contain no orientation information
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* FALL-THROUGH */
|
||||||
|
|
||||||
case BlockID.COCOA_PLANT:
|
case BlockID.COCOA_PLANT:
|
||||||
case BlockID.TRIPWIRE_HOOK:
|
case BlockID.TRIPWIRE_HOOK:
|
||||||
int extra = data & ~0x3;
|
int extra = data & ~0x3;
|
||||||
@ -305,6 +312,13 @@ public final class BlockData {
|
|||||||
|
|
||||||
case BlockID.WOODEN_DOOR:
|
case BlockID.WOODEN_DOOR:
|
||||||
case BlockID.IRON_DOOR:
|
case BlockID.IRON_DOOR:
|
||||||
|
if ((data & 0x8) != 0) {
|
||||||
|
// door top halves contain no orientation information
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* FALL-THROUGH */
|
||||||
|
|
||||||
case BlockID.COCOA_PLANT:
|
case BlockID.COCOA_PLANT:
|
||||||
case BlockID.TRIPWIRE_HOOK:
|
case BlockID.TRIPWIRE_HOOK:
|
||||||
int extra = data & ~0x3;
|
int extra = data & ~0x3;
|
||||||
@ -532,7 +546,11 @@ public final class BlockData {
|
|||||||
|
|
||||||
case BlockID.WOODEN_DOOR:
|
case BlockID.WOODEN_DOOR:
|
||||||
case BlockID.IRON_DOOR:
|
case BlockID.IRON_DOOR:
|
||||||
data ^= flipY << 3;
|
if ((data & 0x8) != 0) {
|
||||||
|
// door top halves contain no orientation information
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
switch (data & 0x3) {
|
switch (data & 0x3) {
|
||||||
case 0: return data + flipX + flipZ * 3;
|
case 0: return data + flipX + flipZ * 3;
|
||||||
case 1: return data - flipX + flipZ;
|
case 1: return data - flipX + flipZ;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren