*
This commit is contained in:
parent
3171fbd953
commit
b2261bb9e2
@ -63,11 +63,11 @@ public class AngleMask extends SolidBlockMask implements ResettableMask {
|
||||
Arrays.fill(cacheHeights, (byte) 0);
|
||||
}
|
||||
}
|
||||
lastY = cacheHeights[index] & 0xFF;
|
||||
if (lastY == 0) {
|
||||
cacheHeights[index] = (byte) (lastY = getExtent().getNearestSurfaceTerrainBlock(x, z, lastY, 0, maxY));
|
||||
int result = cacheHeights[index] & 0xFF;
|
||||
if (result == 0) {
|
||||
cacheHeights[index] = (byte) (result = lastY = getExtent().getNearestSurfaceTerrainBlock(x, z, lastY, 0, maxY));
|
||||
}
|
||||
return lastY;
|
||||
return result;
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
throw e;
|
||||
|
Loading…
Reference in New Issue
Block a user