3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-19 22:30:05 +02:00

Change cycler tool behavior with logs.

- Now works with jungle logs.
- Cycling forward (r-click) cycles through bark types (oak, spruce..)
- Cycling backward (l-click) cycles through orientations (upright, both
  sides, and the "all six sides" texture)
Dieser Commit ist enthalten in:
Wizjany 2013-02-21 21:47:36 -05:00
Ursprung 44ebc1e41d
Commit 02b85a0034

Datei anzeigen

@ -642,7 +642,17 @@ public final class BlockData {
int store;
switch (type) {
// special case here, going to use "forward" for type and "backward" for orientation
case BlockID.LOG:
if (increment == -1) {
store = data & 0x3; // copy bottom (type) bits
return mod((data & ~0x3) + 4, 16) | store; // switch orientation with top bits and reapply bottom bits;
} else {
store = data & ~0x3; // copy top (orientation) bits
return mod((data & 0x3) + 1, 4) | store; // switch type with bottom bits and reapply top bits
}
case BlockID.LONG_GRASS:
case BlockID.STONE_BRICK:
case BlockID.SILVERFISH_BLOCK: