More compiler fixes

This commit is contained in:
Frank 2021-12-07 14:53:33 +01:00
parent 6097311ca6
commit dca9f84ccf
23 changed files with 110 additions and 106 deletions

View file

@ -1,5 +1,8 @@
package ru.betterend.mixin.common;
import java.util.Optional;
import java.util.Random;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Vec3i;
import net.minecraft.nbt.CompoundTag;
@ -23,8 +26,6 @@ import ru.bclib.util.StructureHelper;
import ru.betterend.BetterEnd;
import ru.betterend.world.generator.GeneratorOptions;
import java.util.Random;
@Mixin(EndPodiumFeature.class)
public class EndPodiumFeatureMixin {
private static BlockPos be_portalPosition;
@ -56,7 +57,8 @@ public class EndPodiumFeatureMixin {
private FeaturePlaceContext<NoneFeatureConfiguration> be_setPosOnGround(FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext) {
WorldGenLevel world = featurePlaceContext.level();
BlockPos pos = be_updatePortalPos(world);
return new FeaturePlaceContext<>(
return new FeaturePlaceContext<NoneFeatureConfiguration>(
Optional.empty(),
world,
featurePlaceContext.chunkGenerator(),
featurePlaceContext.random(),