3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-19 14:30:17 +01:00

Use EnumMap in InventoryTranslator for inventory translators

Dieser Commit ist enthalten in:
RednedEpic 2021-12-04 14:17:26 -06:00
Ursprung f0213d4b8e
Commit 2e9ac9db7c

Datei anzeigen

@ -65,7 +65,7 @@ import java.util.*;
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);