From f5ef0cadb61902a8fe00dcf284b8ba045c9e1b4f Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 20 Apr 2022 23:47:09 +0100 Subject: [PATCH] Clean up remaining byte casts from 39081e62c95450a098004cef335acc54ab32a795 --- .../fastasyncworldedit/core/extent/ExtentHeightCacher.java | 2 +- .../com/fastasyncworldedit/core/function/mask/AngleMask.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/ExtentHeightCacher.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/ExtentHeightCacher.java index 107360cc4..af008d1c9 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/ExtentHeightCacher.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/ExtentHeightCacher.java @@ -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; diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/function/mask/AngleMask.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/function/mask/AngleMask.java index d7abc36a3..52de762ae 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/function/mask/AngleMask.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/function/mask/AngleMask.java @@ -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; }