diff --git a/src/client/java/com/bibireden/playerex/registry/PlayerEXMenuRegistry.java b/src/client/java/com/bibireden/playerex/registry/PlayerEXMenuRegistry.java index 8794ea16..dbc08e21 100644 --- a/src/client/java/com/bibireden/playerex/registry/PlayerEXMenuRegistry.java +++ b/src/client/java/com/bibireden/playerex/registry/PlayerEXMenuRegistry.java @@ -30,7 +30,7 @@ public final class PlayerEXMenuRegistry { */ public static void register(ResourceLocation id, @NotNull Class menu) { Pair> pair = new Pair<>(id, menu); - Integer insertingPriority = PRIORITY_ORDER.get(pair.getFirst().toString()); + Integer insertingPriority = PRIORITY_ORDER.get(id.getNamespace()); if (!ENTRIES.isEmpty() && insertingPriority != null) { for (int i = 0, size = ENTRIES.size(); i < size; i++) {