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

This commit is contained in:
Frank 2022-12-10 17:33:41 +01:00
parent d987a03b41
commit 78486cf3c1

View file

@ -85,11 +85,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);