Skip to content

Commit

Permalink
[fix] resolve namespace of inserter
Browse files Browse the repository at this point in the history
  • Loading branch information
bibi-reden committed Aug 13, 2024
1 parent e047c52 commit c791940
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public final class PlayerEXMenuRegistry {
*/
public static void register(ResourceLocation id, @NotNull Class<? extends MenuComponent> menu) {
Pair<ResourceLocation, Class<? extends MenuComponent>> 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++) {
Expand Down

0 comments on commit c791940

Please sign in to comment.