Fixed build errors
This commit is contained in:
parent
a27f3e35e2
commit
f731351a6c
2 changed files with 10 additions and 11 deletions
|
@ -128,10 +128,7 @@ public class EndBiome extends BCLBiome implements SurfaceMaterialProvider {
|
|||
}
|
||||
|
||||
public static BlockState findTopMaterial(BCLBiome biome){
|
||||
if (biome instanceof SurfaceMaterialProvider smp){
|
||||
return smp.getTopMaterial();
|
||||
}
|
||||
return EndBiome.Config.DEFAULT_MATERIAL.getTopMaterial();
|
||||
return BiomeAPI.findTopMaterial(biome).orElse(EndBiome.Config.DEFAULT_MATERIAL.getTopMaterial());
|
||||
}
|
||||
|
||||
public static BlockState findTopMaterial(Biome biome){
|
||||
|
@ -143,10 +140,7 @@ public class EndBiome extends BCLBiome implements SurfaceMaterialProvider {
|
|||
}
|
||||
|
||||
public static BlockState findUnderMaterial(BCLBiome biome){
|
||||
if (biome instanceof SurfaceMaterialProvider smp){
|
||||
return smp.getTopMaterial();
|
||||
}
|
||||
return EndBiome.Config.DEFAULT_MATERIAL.getTopMaterial();
|
||||
return BiomeAPI.findUnderMaterial(biome).orElse(EndBiome.Config.DEFAULT_MATERIAL.getUnderMaterial());
|
||||
}
|
||||
|
||||
public static BlockState findUnderMaterial(WorldGenLevel world, BlockPos pos){
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package ru.betterend.world.features;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.world.level.LevelReader;
|
||||
|
@ -23,14 +25,17 @@ import ru.bclib.util.MHelper;
|
|||
import ru.bclib.util.StructureHelper;
|
||||
import ru.bclib.world.features.NBTStructureFeature;
|
||||
import ru.betterend.util.BlockFixer;
|
||||
|
||||
import java.util.Random;
|
||||
import ru.betterend.world.biome.EndBiome;
|
||||
|
||||
public class CrashedShipFeature extends NBTStructureFeature {
|
||||
private static final StructureProcessor REPLACER;
|
||||
private static final String STRUCTURE_PATH = "/data/minecraft/structures/end_city/ship.nbt";
|
||||
private StructureTemplate structure;
|
||||
|
||||
public CrashedShipFeature() {
|
||||
super(EndBiome.Config.DEFAULT_MATERIAL.getTopMaterial());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected StructureTemplate getStructure(WorldGenLevel world, BlockPos pos, Random random) {
|
||||
if (structure == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue