mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-04 23:06:05 +00:00
biome tagging debugging
This commit is contained in:
@@ -118,11 +118,18 @@ public final class FabricUtil {
|
||||
map.put(pair.getFirst(), new ArrayList<>(pair.getSecond().stream().toList())),
|
||||
HashMap::putAll);
|
||||
|
||||
TERRA_BIOME_MAP.forEach((vanilla, terra) -> getEntry(registry, vanilla.getKey().orElseThrow().getValue()).orElseThrow()
|
||||
.streamTags()
|
||||
.forEach(tag -> collect.computeIfAbsent(tag, t -> new ArrayList<>()).add(getEntry(registry, terra.getKey().orElseThrow().getValue()).orElseThrow())));
|
||||
TERRA_BIOME_MAP.forEach((vanilla, terra) -> {
|
||||
RegistryEntry<net.minecraft.world.biome.Biome> entry = getEntry(registry,
|
||||
vanilla.getKey().orElseThrow().getValue())
|
||||
.orElseThrow();
|
||||
logger.info(entry.getKey().orElseThrow().getValue() + " (vanilla for " + terra.getKey().orElseThrow().getValue() + ": " +
|
||||
vanilla.streamTags().toList());
|
||||
entry.streamTags()
|
||||
.forEach(tag -> collect.computeIfAbsent(tag, t -> new ArrayList<>())
|
||||
.add(getEntry(registry, terra.getKey().orElseThrow().getValue()).orElseThrow()));
|
||||
});
|
||||
|
||||
|
||||
registry.clearTags();
|
||||
registry.populateTags(ImmutableMap.copyOf(collect));
|
||||
|
||||
registry.streamEntries()
|
||||
|
||||
@@ -37,7 +37,7 @@ public class ProtoPlatformBiome implements PlatformBiome {
|
||||
}
|
||||
|
||||
public RegistryEntry<Biome> get(Registry<net.minecraft.world.biome.Biome> registry) {
|
||||
return registry.getOrCreateEntry(registry.getKey(registry.get(identifier)).orElseThrow());
|
||||
return FabricUtil.getEntry(registry, identifier).orElseThrow();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user