Biome generator fix
This commit is contained in:
parent
8bdfbb65fa
commit
24c501ce13
6 changed files with 5 additions and 20 deletions
|
@ -7,7 +7,6 @@ import java.util.Random;
|
|||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockRenderType;
|
||||
import net.minecraft.block.BlockState;
|
||||
|
@ -37,7 +36,6 @@ import net.minecraft.util.math.BlockPos;
|
|||
import net.minecraft.util.math.Direction;
|
||||
import net.minecraft.world.BlockView;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import ru.betterend.blocks.basis.BaseBlockWithEntity;
|
||||
import ru.betterend.blocks.entities.EndStoneSmelterBlockEntity;
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ import net.minecraft.resource.ResourceManager;
|
|||
import net.minecraft.tag.Tag;
|
||||
import net.minecraft.tag.TagGroupLoader;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
import ru.betterend.util.TagHelper;
|
||||
|
||||
@Mixin(TagGroupLoader.class)
|
||||
|
|
|
@ -81,7 +81,7 @@ public class EndBiomes {
|
|||
biomeRegistry.forEach((biome) -> {
|
||||
if (biome.getCategory() == Category.THEEND) {
|
||||
Identifier id = biomeRegistry.getId(biome);
|
||||
if (!ID_MAP.containsKey(id) && !LAND_BIOMES.containsImmutable(id) && !VOID_BIOMES.containsImmutable(id)) {
|
||||
if (!LAND_BIOMES.containsImmutable(id) && !VOID_BIOMES.containsImmutable(id)) {
|
||||
JsonObject config = configs.get(id.getNamespace());
|
||||
if (config == null) {
|
||||
config = loadJsonConfig(id.getNamespace());
|
||||
|
@ -97,7 +97,6 @@ public class EndBiomes {
|
|||
isVoid = JsonFactory.getString(element.getAsJsonObject(), "type", "land").equals("void");
|
||||
}
|
||||
EndBiome endBiome = new EndBiome(id, biome, fog, chance);
|
||||
System.out.println("Adding: " + id + " " + chance);
|
||||
if (isVoid) {
|
||||
VOID_BIOMES.addBiomeMutable(endBiome);
|
||||
}
|
||||
|
@ -109,9 +108,6 @@ public class EndBiomes {
|
|||
}
|
||||
});
|
||||
|
||||
System.out.println("Land");
|
||||
LAND_BIOMES.debug();
|
||||
|
||||
CLIENT.clear();
|
||||
}
|
||||
|
||||
|
|
|
@ -112,10 +112,6 @@ public class EndBiome {
|
|||
return genChance;
|
||||
}
|
||||
|
||||
public String debug() {
|
||||
return this.mcID + " " + this.genChanceUnmutable + " " + this.genChance;
|
||||
}
|
||||
|
||||
public Biome getBiome() {
|
||||
return biome;
|
||||
}
|
||||
|
|
|
@ -85,8 +85,10 @@ public class BetterEndBiomeSource extends BiomeSource {
|
|||
mapLand.clearCache();
|
||||
mapVoid.clearCache();
|
||||
}
|
||||
|
||||
System.out.println(endBiome.getID());
|
||||
String space = endBiome.getID().getNamespace();
|
||||
if (space.equals("byg")) {
|
||||
System.out.println(biomeX * 4 + " 100 " + biomeZ * 4);
|
||||
}
|
||||
return biomeRegistry.get(endBiome.getID());//EndBiomes.getActualBiome(endBiome);
|
||||
}
|
||||
|
||||
|
|
|
@ -49,12 +49,6 @@ public class BiomePicker {
|
|||
return biomes;
|
||||
}
|
||||
|
||||
public void debug() {
|
||||
for (EndBiome b: biomes) {
|
||||
System.out.println(b.debug());
|
||||
}
|
||||
}
|
||||
|
||||
public boolean containsImmutable(Identifier id) {
|
||||
return immutableIDs.contains(id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue