Make sure boundary condition is right on getMaximumY - must be 1 or higher

This commit is contained in:
mikeprimm 2011-05-20 08:46:12 -07:00
parent 3365a96565
commit 2ccf70d3fe

View File

@ -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);