From b2261bb9e2da0e105fc79d0915d58b8c6d9e45eb Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 18 Jun 2017 09:54:51 +1000 Subject: [PATCH] * --- .../main/java/com/boydti/fawe/object/mask/AngleMask.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/boydti/fawe/object/mask/AngleMask.java b/core/src/main/java/com/boydti/fawe/object/mask/AngleMask.java index 97852513..7bad8c3e 100644 --- a/core/src/main/java/com/boydti/fawe/object/mask/AngleMask.java +++ b/core/src/main/java/com/boydti/fawe/object/mask/AngleMask.java @@ -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;