From 8957d9680964b88f7ea7a00b7d7d708f04d126c4 Mon Sep 17 00:00:00 2001 From: austin Date: Sat, 24 May 2025 21:42:45 -0400 Subject: [PATCH] code cleanup --- .../terrain/foliage/FoliageCellManager.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/electrosphere/client/terrain/foliage/FoliageCellManager.java b/src/main/java/electrosphere/client/terrain/foliage/FoliageCellManager.java index 4fd1001e..2334e08f 100644 --- a/src/main/java/electrosphere/client/terrain/foliage/FoliageCellManager.java +++ b/src/main/java/electrosphere/client/terrain/foliage/FoliageCellManager.java @@ -101,67 +101,67 @@ public class FoliageCellManager { /** * The octree holding all the chunks to evaluate */ - WorldOctTree chunkTree; + private WorldOctTree chunkTree; /** * Tracks what nodes have been evaluated this frame -- used to deduplicate evaluation calls */ - Map,Boolean> evaluationMap = new HashMap,Boolean>(); + private Map,Boolean> evaluationMap = new HashMap,Boolean>(); /** * The last recorded player world position */ - Vector3i lastPlayerPos = new Vector3i(); + private Vector3i lastPlayerPos = new Vector3i(); /** * Tracks whether the cell manager updated last frame or not */ - boolean updatedLastFrame = true; + private boolean updatedLastFrame = true; /** * Controls whether the foliage cell manager should update or not */ - boolean shouldUpdate = true; + private boolean shouldUpdate = true; /** * The dimensions of the world */ - int worldDim = 0; + private int worldDim = 0; /** * Tracks the number of currently valid cells (ie didn't require an update this frame) */ - int validCellCount = 0; + private int validCellCount = 0; /** * The number of maximum resolution chunks */ - int maxResCount = 0; + private int maxResCount = 0; /** * The number of half resolution chunks */ - int halfResCount = 0; + private int halfResCount = 0; /** * The number of generated chunks */ - int generated = 0; + private int generated = 0; /** * Tracks whether the cell manager has initialized or not */ - boolean initialized = false; + private boolean initialized = false; /** * The list of points to break at next evaluation */ - List breakPoints = new LinkedList(); + private List breakPoints = new LinkedList(); /** * Used to bust the distance cache from external calls */ - boolean bustDistCache = false; + private boolean bustDistCache = false; /** * Constructor