Small cleanup

This commit is contained in:
Eclipse 2024-07-12 09:23:47 +00:00
parent e5bcab1ec3
commit 7fa4f27c5a
No known key found for this signature in database
GPG key ID: 95E6998F82EC938A
2 changed files with 1 additions and 4 deletions

View file

@ -99,6 +99,7 @@ public final class TagCache {
int[][] tags = new int[vanillaTags.size() + nonVanillaTagKeys.size()][];
// Load all vanilla tags first (whether the server sent them or not), then load all the remaining non-vanilla tags the server might have sent.
for (Map.Entry<Key, Tag> vanillaTag : vanillaTags.entrySet()) {
tags[((VanillaTag) vanillaTag.getValue()).ordinal()] = packetTags.getOrDefault(vanillaTag.getKey(), new int[0]);
}

View file

@ -65,10 +65,6 @@ public enum TagRegistry {
return Map.copyOf(vanillaTags);
}
public static boolean shouldLoad(Key registryKey) {
return fromKey(registryKey) != null;
}
@Nullable
public static TagRegistry fromKey(Key registryKey) {
for (TagRegistry registry : TagRegistry.values()) {