Fixed wrong custom spawn point

This commit is contained in:
paulevsGitch 2021-08-10 13:41:06 +03:00
parent bfbaebe7b2
commit 57191936dc
4 changed files with 28 additions and 17 deletions

View file

@ -56,20 +56,7 @@ public abstract class ChorusFlowerBlockMixin extends Block {
int i = state.getValue(ChorusFlowerBlock.AGE);
if (i < 5) {
this.placeGrownFlower(world, up, i + 1);
if (GeneratorOptions.changeChorusPlant()) {
BlocksHelper.setWithoutUpdate(
world,
pos,
plant.defaultBlockState().setValue(ChorusPlantBlock.UP, true).setValue(ChorusPlantBlock.DOWN, true)
);
}
else {
BlocksHelper.setWithoutUpdate(
world,
pos,
plant.defaultBlockState().setValue(ChorusPlantBlock.UP, true).setValue(ChorusPlantBlock.DOWN, true)
);
}
BlocksHelper.setWithoutUpdate(world, pos, plant.defaultBlockState().setValue(ChorusPlantBlock.UP, true).setValue(ChorusPlantBlock.DOWN, true));
info.cancel();
}
}