mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +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) {
|
||||
CraftChunkSnapshot ss = snaparray[((x>>4) - x_min) + ((z>>4) - z_min) * x_dim];
|
||||
if(ss == null) {
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
return ss.getHighestBlockYAt(x & 0xF, z & 0xF);
|
||||
|
Loading…
Reference in New Issue
Block a user