mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-01-23 00:41:59 +01:00
Fix adding multiple definitions for same item model again
This commit is contained in:
parent
a4c17daf24
commit
a80e90d648
2 changed files with 5 additions and 1 deletions
|
@ -775,6 +775,11 @@ public class ItemRegistryPopulator {
|
|||
}
|
||||
} // TODO not a fan of how this looks
|
||||
}
|
||||
|
||||
if (first.predicates().size() == second.predicates().size()) {
|
||||
return -1; // If there's no preferred range predicate order and they both have the same amount of predicates, prefer the first
|
||||
}
|
||||
|
||||
return second.predicates().size() - first.predicates().size();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,7 +59,6 @@ import java.util.function.Function;
|
|||
/**
|
||||
* This is only a separate class for testing purposes so we don't have to load in GeyserImpl in ItemTranslator.
|
||||
*/
|
||||
@Slf4j
|
||||
public final class CustomItemTranslator {
|
||||
|
||||
@Nullable
|
||||
|
|
Loading…
Add table
Reference in a new issue