Make Pair a record

This commit is contained in:
dfsek committed 2026-01-01 20:10:15 -07:00
1 parent eb6b3704d0
commit 47bdd66fe7
11 files changed
+24 -49

No files matched your search

@@ -37,15 +37,15 @@ public final class TagUtil {
PresetUtil
.getPresets()
.forEach(pair -> MinecraftUtil
.getEntry(registry, pair.getLeft())
.getEntry(registry, pair.left())
.ifPresentOrElse(
preset -> {
boolean useExtendedTag = pair.getRight(); // Get the boolean value from the pair
boolean useExtendedTag = pair.right(); // Get the boolean value from the pair
collect
.computeIfAbsent(useExtendedTag ? WorldPresetTags.EXTENDED : WorldPresetTags.NORMAL, tag -> new ArrayList<>())
.add(preset);
},
() -> logger.error("Preset {} does not exist!", pair.getLeft())));
() -> logger.error("Preset {} does not exist!", pair.left())));
registry.startTagReload(new RegistryTags<>(registry.getKey(), collect)).apply();