mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +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())),
|
map.put(pair.getFirst(), new ArrayList<>(pair.getSecond().stream().toList())),
|
||||||
HashMap::putAll);
|
HashMap::putAll);
|
||||||
|
|
||||||
TERRA_BIOME_MAP.forEach((vanilla, terra) -> getEntry(registry, vanilla.getKey().orElseThrow().getValue()).orElseThrow()
|
TERRA_BIOME_MAP.forEach((vanilla, terra) -> {
|
||||||
.streamTags()
|
RegistryEntry<net.minecraft.world.biome.Biome> entry = getEntry(registry,
|
||||||
.forEach(tag -> collect.computeIfAbsent(tag, t -> new ArrayList<>()).add(getEntry(registry, terra.getKey().orElseThrow().getValue()).orElseThrow())));
|
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.populateTags(ImmutableMap.copyOf(collect));
|
||||||
|
|
||||||
registry.streamEntries()
|
registry.streamEntries()
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public class ProtoPlatformBiome implements PlatformBiome {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public RegistryEntry<Biome> get(Registry<net.minecraft.world.biome.Biome> registry) {
|
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
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user