Make sure boundary condition is right on getMaximumY - must be 1 or higher
This commit is contained in:
parent
4cfc249625
commit
2299df445a
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ public class MapChunkCache {
|
||||||
if(snaparray != null) {
|
if(snaparray != null) {
|
||||||
CraftChunkSnapshot ss = snaparray[((x>>4) - x_min) + ((z>>4) - z_min) * x_dim];
|
CraftChunkSnapshot ss = snaparray[((x>>4) - x_min) + ((z>>4) - z_min) * x_dim];
|
||||||
if(ss == null) {
|
if(ss == null) {
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return ss.getHighestBlockYAt(x & 0xF, z & 0xF);
|
return ss.getHighestBlockYAt(x & 0xF, z & 0xF);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue