From 2e9ac9db7c6a74187f588252c87acc3eef25fc66 Mon Sep 17 00:00:00 2001 From: RednedEpic Date: Sat, 4 Dec 2021 14:17:26 -0600 Subject: [PATCH] Use EnumMap in InventoryTranslator for inventory translators --- .../geyser/translator/inventory/InventoryTranslator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/geysermc/geyser/translator/inventory/InventoryTranslator.java b/core/src/main/java/org/geysermc/geyser/translator/inventory/InventoryTranslator.java index d6bc4b186..a35fdfbcb 100644 --- a/core/src/main/java/org/geysermc/geyser/translator/inventory/InventoryTranslator.java +++ b/core/src/main/java/org/geysermc/geyser/translator/inventory/InventoryTranslator.java @@ -65,7 +65,7 @@ import java.util.*; public abstract class InventoryTranslator { public static final InventoryTranslator PLAYER_INVENTORY_TRANSLATOR = new PlayerInventoryTranslator(); - public static final Map INVENTORY_TRANSLATORS = new HashMap<>() { + public static final Map INVENTORY_TRANSLATORS = new EnumMap<>(ContainerType.class) { { /* Player Inventory */ put(null, PLAYER_INVENTORY_TRANSLATOR);