mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-16 17:16:11 +00:00
Clean up remaining byte casts from 39081e62c9
This commit is contained in:
parent
c94cbf25a6
commit
f5ef0cadb6
@ -46,7 +46,7 @@ public class ExtentHeightCacher extends PassthroughExtent {
|
|||||||
}
|
}
|
||||||
int result = cacheHeights[index] & 0xFF;
|
int result = cacheHeights[index] & 0xFF;
|
||||||
if (result == minY) {
|
if (result == minY) {
|
||||||
cacheHeights[index] = (byte) (result = lastY = super
|
cacheHeights[index] = (short) (result = lastY = super
|
||||||
.getNearestSurfaceTerrainBlock(x, z, lastY, minY, maxY));
|
.getNearestSurfaceTerrainBlock(x, z, lastY, minY, maxY));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -50,7 +50,7 @@ public class AngleMask extends AbstractExtentMask implements ResettableMask {
|
|||||||
lastY = Integer.MIN_VALUE;
|
lastY = Integer.MIN_VALUE;
|
||||||
lastZ = Integer.MIN_VALUE;
|
lastZ = Integer.MIN_VALUE;
|
||||||
if (cacheHeights != null) {
|
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];
|
int result = cacheHeights[index];
|
||||||
if (y > result) {
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user