Clean up remaining byte casts from 39081e62c9

This commit is contained in:
dordsor21 2022-04-20 23:47:09 +01:00
parent c94cbf25a6
commit f5ef0cadb6
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ public class ExtentHeightCacher extends PassthroughExtent {
}
int result = cacheHeights[index] & 0xFF;
if (result == minY) {
cacheHeights[index] = (byte) (result = lastY = super
cacheHeights[index] = (short) (result = lastY = super
.getNearestSurfaceTerrainBlock(x, z, lastY, minY, maxY));
}
return result;

View File

@ -50,7 +50,7 @@ public class AngleMask extends AbstractExtentMask implements ResettableMask {
lastY = Integer.MIN_VALUE;
lastZ = Integer.MIN_VALUE;
if (cacheHeights != null) {
Arrays.fill(cacheHeights, (byte) 0);
Arrays.fill(cacheHeights, (short) 0);
}
}
@ -75,7 +75,7 @@ public class AngleMask extends AbstractExtentMask implements ResettableMask {
}
int result = cacheHeights[index];
if (y > result) {
cacheHeights[index] = (byte) (result = lastY = extent.getNearestSurfaceTerrainBlock(x, z, lastY, minY, maxY));
cacheHeights[index] = (short) (result = lastY = extent.getNearestSurfaceTerrainBlock(x, z, lastY, minY, maxY));
}
return result;
}