Compile-Fixes in BetterEnd

This commit is contained in:
Frank 2022-05-17 18:09:43 +02:00
parent 6d6a1175b5
commit e3953167ba
174 changed files with 612 additions and 450 deletions

View file

@ -18,12 +18,13 @@ import ru.bclib.util.MHelper;
import ru.betterend.registry.EndBlocks;
import java.util.Random;
import net.minecraft.util.RandomSource;
@Mixin(ChorusPlantFeature.class)
public class ChorusPlantFeatureMixin {
@Inject(method = "place", at = @At("HEAD"), cancellable = true)
private void be_place(FeaturePlaceContext<NoneFeatureConfiguration> featureConfig, CallbackInfoReturnable<Boolean> info) {
final Random random = featureConfig.random();
final RandomSource random = featureConfig.random();
final BlockPos blockPos = featureConfig.origin();
final WorldGenLevel structureWorldAccess = featureConfig.level();
if (structureWorldAccess.isEmptyBlock(blockPos) && structureWorldAccess.getBlockState(blockPos.below()).is(EndBlocks.CHORUS_NYLIUM)) {