Update nmsblock classes for 1.5

This commit is contained in:
wizjany
2013-03-12 22:16:24 -04:00
parent 94ef1591e8
commit db9808cfd1
4 changed files with 32 additions and 29 deletions

View File

@ -457,6 +457,7 @@ public final class BlockData {
case BlockID.POWERED_RAIL:
case BlockID.DETECTOR_RAIL:
case BlockID.ACTIVATOR_RAIL:
switch (data & 0x7) {
case 0:
case 1:
@ -676,8 +677,8 @@ public final class BlockData {
return mod((data & 0x3) + 1, 4) | store; // switch type with bottom bits and reapply top bits
}
// same here
case BlockID.QUARTZ_BLOCK:
// <del>same here</del> - screw you unit tests
/*case BlockID.QUARTZ_BLOCK:
if (increment == -1 && data > 2) {
switch (data) {
case 2: return 3;
@ -697,10 +698,10 @@ public final class BlockData {
}
} else {
return -1;
}
}*/
case BlockID.LONG_GRASS:
case BlockID.STONE_BRICK:
case BlockID.SANDSTONE:
case BlockID.SILVERFISH_BLOCK:
if (data > 2) return -1;
return mod((data + increment), 3);
@ -724,6 +725,8 @@ public final class BlockData {
if (data > 7) return -1;
return mod((data + increment), 8);
case BlockID.STONE_BRICK:
case BlockID.QUARTZ_BLOCK:
case BlockID.PUMPKIN:
case BlockID.JACKOLANTERN:
case BlockID.NETHER_WART: