From 1d6d4745f74dd1a4936c4d377e3161ce0a453724 Mon Sep 17 00:00:00 2001 From: dhyces <10985914+dhyces@users.noreply.github.com> Date: Tue, 28 May 2024 22:33:42 -0700 Subject: [PATCH] Rename field --- .../trimmed/impl/client/maps/manager/MapHandler.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/dev/dhyces/trimmed/impl/client/maps/manager/MapHandler.java b/common/src/main/java/dev/dhyces/trimmed/impl/client/maps/manager/MapHandler.java index 09dceec8..3cb2e8fa 100644 --- a/common/src/main/java/dev/dhyces/trimmed/impl/client/maps/manager/MapHandler.java +++ b/common/src/main/java/dev/dhyces/trimmed/impl/client/maps/manager/MapHandler.java @@ -27,11 +27,11 @@ public final class MapHandler { private final MapKey baseKey; - private final Map, ClientMapHolder>> map; + private final Map, ClientMapHolder>> holders; public MapHandler(MapKey baseKey) { this.baseKey = baseKey; - this.map = new Reference2ObjectOpenHashMap<>(); + this.holders = new Reference2ObjectOpenHashMap<>(); } MapHolder getHolder(MapKey mapKey) { @@ -39,14 +39,14 @@ MapHolder getHolder(MapKey mapKey) { } void clear() { - map.values().forEach(kvMapClientMapHolder -> { + holders.values().forEach(kvMapClientMapHolder -> { kvMapClientMapHolder.backing = null; kvMapClientMapHolder.optionalKeys = null; }); } private ClientMapHolder> getOrCreateHolder(MapKey key) { - return map.computeIfAbsent(key, ClientMapHolder::new); + return holders.computeIfAbsent(key, ClientMapHolder::new); } void parse(ResourceLocation resolverPath, FileToIdConverter converter, ResourceManager resourceManager) {