mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-01 06:33:38 +01:00
Make sure boundary condition is right on getMaximumY - must be 1 or higher
This commit is contained in:
parent
3365a96565
commit
2ccf70d3fe
@ -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…
Reference in New Issue
Block a user