mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-12 12:25:03 +08:00
Fix //flip using incorrect block directions.
This commit is contained in:
parent
184d02d2e3
commit
ca1cecbdf4
@ -173,13 +173,13 @@ public static int rotate90(int type, int data) {
|
||||
|
||||
case BlockID.PISTON_BASE:
|
||||
case BlockID.PISTON_STICKY_BASE:
|
||||
case BlockID.PISTON_EXTENSION:
|
||||
case BlockID.PISTON_EXTENSION:
|
||||
final int rest = data & ~0x7;
|
||||
switch (data & 0x7) {
|
||||
case 2: return 5 | rest;
|
||||
case 3: return 4 | rest;
|
||||
case 4: return 2 | rest;
|
||||
case 5: return 3 | rest;
|
||||
switch (data & 0x7) {
|
||||
case 2: return 5 | rest;
|
||||
case 3: return 4 | rest;
|
||||
case 4: return 2 | rest;
|
||||
case 5: return 3 | rest;
|
||||
}
|
||||
break;
|
||||
|
||||
@ -398,11 +398,11 @@ public static int flip(int type, int data, FlipDirection direction) {
|
||||
|
||||
switch (direction) {
|
||||
case NORTH_SOUTH:
|
||||
flipX = 1;
|
||||
flipZ = 1;
|
||||
break;
|
||||
|
||||
case WEST_EAST:
|
||||
flipZ = 1;
|
||||
flipX = 1;
|
||||
break;
|
||||
|
||||
case UP_DOWN:
|
||||
|
Loading…
Reference in New Issue
Block a user