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

Add wooden buttons to BlockData

Dieser Commit ist enthalten in:
Wizjany 2013-01-31 12:46:32 -05:00
Ursprung 87daba207a
Commit eb489bd21d

Datei anzeigen

@ -91,6 +91,7 @@ public final class BlockData {
case BlockID.LEVER: case BlockID.LEVER:
case BlockID.STONE_BUTTON: case BlockID.STONE_BUTTON:
case BlockID.WOODEN_BUTTON:
int thrown = data & 0x8; int thrown = data & 0x8;
int withoutThrown = data & ~0x8; int withoutThrown = data & ~0x8;
switch (withoutThrown) { switch (withoutThrown) {
@ -265,6 +266,7 @@ public final class BlockData {
case BlockID.LEVER: case BlockID.LEVER:
case BlockID.STONE_BUTTON: case BlockID.STONE_BUTTON:
case BlockID.WOODEN_BUTTON:
int thrown = data & 0x8; int thrown = data & 0x8;
int withoutThrown = data & ~0x8; int withoutThrown = data & ~0x8;
switch (withoutThrown) { switch (withoutThrown) {
@ -417,6 +419,7 @@ public final class BlockData {
case BlockID.LEVER: case BlockID.LEVER:
case BlockID.STONE_BUTTON: case BlockID.STONE_BUTTON:
case BlockID.WOODEN_BUTTON:
switch (data & ~0x8) { switch (data & ~0x8) {
case 1: return data + flipX; case 1: return data + flipX;
case 2: return data - flipX; case 2: return data - flipX;