[Fix] BlockFixer does not recognize budding smaragdant (#123)

This commit is contained in:
Frank 2022-12-10 17:33:41 +01:00
parent 3e81eae747
commit 02c146f575

View file

@ -84,11 +84,11 @@ public class BlockFixer {
break;
}
}
} else if (state.is(EndBlocks.SMARAGDANT_CRYSTAL)) {
} else if (state.is(EndBlocks.SMARAGDANT_CRYSTAL) || state.is(EndBlocks.BUDDING_SMARAGDANT_CRYSTAL)) {
POS.setY(POS.getY() - 1);
if (level.isEmptyBlock(POS)) {
POS.setY(POS.getY() + 1);
while (state.is(EndBlocks.SMARAGDANT_CRYSTAL)) {
while (state.is(EndBlocks.SMARAGDANT_CRYSTAL) || state.is(EndBlocks.BUDDING_SMARAGDANT_CRYSTAL)) {
setWithoutUpdate(level, POS, AIR);
POS.setY(POS.getY() + 1);
state = level.getBlockState(POS);