From 0dab4a2274aeb5a73045ed8860f0650e80c7506f Mon Sep 17 00:00:00 2001 From: cola98765 Date: Mon, 20 Sep 2021 11:54:01 +0200 Subject: [PATCH] addressed couple warnings --- src/main/java/com/seibel/lod/objects/LodDimension.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/seibel/lod/objects/LodDimension.java b/src/main/java/com/seibel/lod/objects/LodDimension.java index da96d4f95..7bc957174 100644 --- a/src/main/java/com/seibel/lod/objects/LodDimension.java +++ b/src/main/java/com/seibel/lod/objects/LodDimension.java @@ -64,11 +64,11 @@ public class LodDimension // these three variables are private to force use of the getWidth() method // which is a safer way to get the width then directly asking the arrays /** stores all the regions in this dimension */ - private volatile LodRegion regions[][]; + private volatile LodRegion[][] regions; /** stores if the region at the given x and z index needs to be saved to disk */ - private volatile boolean isRegionDirty[][]; + private volatile boolean[][] isRegionDirty; /** stores if the region at the given x and z index needs to be regenerated */ - private volatile boolean regionNeedsRegen[][]; + private volatile boolean[][] regionNeedsRegen; /** * if true that means there are regions in this dimension @@ -93,7 +93,7 @@ public class LodDimension lastGenChunk = null; dimension = newDimension; width = newWidth; - halfWidth = (int) Math.floor(width / 2); + halfWidth = width / 2; MinecraftWrapper mc = MinecraftWrapper.INSTANCE; if (newDimension != null && lodWorld != null) {