Fixed EndPodiumFeatureMixin

This commit is contained in:
Frank Bauer 2021-06-28 22:39:37 +02:00
parent 2aa6243f40
commit ea62902ee8

View file

@ -51,8 +51,10 @@ public class EndPodiumFeatureMixin {
}
@ModifyVariable(method = "place", ordinal = 0, at = @At("HEAD"))
private BlockPos be_setPosOnGround(BlockPos blockPos, WorldGenLevel world) {
return be_updatePos(blockPos, world);
private FeaturePlaceContext<NoneFeatureConfiguration> be_setPosOnGround(FeaturePlaceContext<NoneFeatureConfiguration> featurePlaceContext) {
WorldGenLevel world = featurePlaceContext.level();
BlockPos pos = be_updatePos(featurePlaceContext.origin(), world);
return new FeaturePlaceContext<NoneFeatureConfiguration>(world, featurePlaceContext.chunkGenerator(), featurePlaceContext.random(), pos, featurePlaceContext.config());
}
private BlockPos be_updatePos(BlockPos blockPos, WorldGenLevel world) {