Removed custom End/Nether Tags

This commit is contained in:
Frank 2022-12-04 22:12:44 +01:00
parent 857807aca1
commit 2fa5c9510a
2 changed files with 3 additions and 5 deletions

View file

@ -6,7 +6,6 @@ import org.betterx.bclib.interfaces.SurfaceMaterialProvider;
import org.betterx.bclib.mixin.common.BiomeGenerationSettingsAccessor;
import org.betterx.bclib.mixin.common.MobSpawnSettingsAccessor;
import org.betterx.bclib.util.CollectionsUtil;
import org.betterx.worlds.together.tag.v3.CommonBiomeTags;
import org.betterx.worlds.together.tag.v3.TagManager;
import org.betterx.worlds.together.world.event.WorldBootstrap;
@ -296,10 +295,8 @@ public class BiomeAPI {
BiomeType dim = bclbiome.getIntendedType();
if (dim != null && dim.is(BiomeType.NETHER)) {
TagManager.BIOMES.add(BiomeTags.IS_NETHER, bclbiome.getBiomeKey());
TagManager.BIOMES.add(CommonBiomeTags.IN_NETHER, bclbiome.getBiomeKey());
} else if (dim != null && dim.is(BiomeType.END)) {
TagManager.BIOMES.add(BiomeTags.IS_END, bclbiome.getBiomeKey());
TagManager.BIOMES.add(CommonBiomeTags.IN_END, bclbiome.getBiomeKey());
}
bclbiome.afterRegistration();

View file

@ -1,11 +1,12 @@
package org.betterx.worlds.together.tag.v3;
import net.minecraft.tags.BiomeTags;
import net.minecraft.tags.TagKey;
import net.minecraft.world.level.biome.Biome;
public class CommonBiomeTags {
public static final TagKey<Biome> IN_NETHER = TagManager.BIOMES.makeCommonTag("in_nether");
public static final TagKey<Biome> IN_END = TagManager.BIOMES.makeCommonTag("in_end");
public static final TagKey<Biome> IN_NETHER = BiomeTags.IS_NETHER;//TagManager.BIOMES.makeCommonTag("in_nether");
public static final TagKey<Biome> IN_END = BiomeTags.IS_END; //TagManager.BIOMES.makeCommonTag("in_end");
static void prepareTags() {
}