Skip to content

Commit

Permalink
Use EnumMap in InventoryTranslator for inventory translators
Browse files Browse the repository at this point in the history
  • Loading branch information
Redned235 committed Dec 4, 2021
1 parent f0213d4 commit 2e9ac9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
public abstract class InventoryTranslator {

public static final InventoryTranslator PLAYER_INVENTORY_TRANSLATOR = new PlayerInventoryTranslator();
public static final Map<ContainerType, InventoryTranslator> INVENTORY_TRANSLATORS = new HashMap<>() {
public static final Map<ContainerType, InventoryTranslator> INVENTORY_TRANSLATORS = new EnumMap<>(ContainerType.class) {
{
/* Player Inventory */
put(null, PLAYER_INVENTORY_TRANSLATOR);
Expand Down

0 comments on commit 2e9ac9d

Please sign in to comment.