This commit is contained in:
Jesse Boyd 2016-04-06 03:51:52 +10:00
parent ab4af2741f
commit fabdf0b08a
3 changed files with 9 additions and 0 deletions

View File

@ -257,6 +257,9 @@ public class BukkitQueue_1_8 extends BukkitQueue_0 {
@Override
public int getCombinedId4Data(int x, int y, int z) {
if (y < 0 || y > 255) {
return 0;
}
int cx = x >> 4;
int cz = z >> 4;
int cy = y >> 4;

View File

@ -232,6 +232,9 @@ public class BukkitQueue_1_9 extends BukkitQueue_0 {
@Override
public int getCombinedId4Data(int x, int y, int z) {
if (y < 0 || y > 255) {
return 0;
}
try {
int cx = x >> 4;
int cz = z >> 4;

View File

@ -88,6 +88,9 @@ public class SpongeQueue_1_8 extends SpongeQueue_0 {
@Override
public int getCombinedId4Data(int x, int y, int z) {
if (y < 0 || y > 255) {
return 0;
}
int cx = x >> 4;
int cz = z >> 4;
int cy = y >> 4;