mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Small cleanup
This commit is contained in:
parent
e5bcab1ec3
commit
7fa4f27c5a
2 changed files with 1 additions and 4 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue