Minor fixes.
This commit is contained in:
parent
d74ae124c3
commit
8eadef2e35
@ -1075,9 +1075,21 @@ public String convertToItemName(String val) {
|
||||
if (found) {break;}
|
||||
}
|
||||
if (!found) {
|
||||
boolean found2=false;
|
||||
for (int x=0;x<16;x++) {
|
||||
for (int yy=1;yy<4;yy++) {
|
||||
for (int z=0;z<16;z++) {
|
||||
if (!naturalBlock(p.getWorld().getBlockAt(chunkx*16+x,y+yy,chunkz*16+z).getType())) {
|
||||
found2=true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!found2) {break;}
|
||||
}
|
||||
if (!found2) {break;}
|
||||
}
|
||||
}
|
||||
|
||||
final Location loc1 = new Location(p.getWorld(),chunkx*16-16,lowest,chunkz*16-16);
|
||||
final Location loc2 = new Location(p.getWorld(),chunkx*16+32,128,chunkz*16+32);
|
||||
|
Loading…
x
Reference in New Issue
Block a user