[Fix] BlockFixer does not recognize budding smaragdant (#123)
This commit is contained in:
parent
3e81eae747
commit
02c146f575
1 changed files with 2 additions and 2 deletions
|
@ -84,11 +84,11 @@ public class BlockFixer {
|
||||||
break;
|
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);
|
POS.setY(POS.getY() - 1);
|
||||||
if (level.isEmptyBlock(POS)) {
|
if (level.isEmptyBlock(POS)) {
|
||||||
POS.setY(POS.getY() + 1);
|
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);
|
setWithoutUpdate(level, POS, AIR);
|
||||||
POS.setY(POS.getY() + 1);
|
POS.setY(POS.getY() + 1);
|
||||||
state = level.getBlockState(POS);
|
state = level.getBlockState(POS);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue