Fixes #18
This commit is contained in:
parent
ab4af2741f
commit
fabdf0b08a
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user