mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Use EnumMap in InventoryTranslator for inventory translators
This commit is contained in:
parent
f0213d4b8e
commit
2e9ac9db7c
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ import java.util.*;
|
||||||
public abstract class InventoryTranslator {
|
public abstract class InventoryTranslator {
|
||||||
|
|
||||||
public static final InventoryTranslator PLAYER_INVENTORY_TRANSLATOR = new PlayerInventoryTranslator();
|
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 */
|
/* Player Inventory */
|
||||||
put(null, PLAYER_INVENTORY_TRANSLATOR);
|
put(null, PLAYER_INVENTORY_TRANSLATOR);
|
||||||
|
|
Loading…
Reference in a new issue