fix shift-clicking records not actually clearing them

This commit is contained in:
yrsegal@gmail.com 2022-04-09 22:02:28 -04:00
parent 07bd9cba65
commit ba6d60f84b

View file

@ -113,7 +113,9 @@ public class BlockEntityAkashicRecord extends PaucalBlockEntity {
var bs = this.level.getBlockState(neighbor);
if (BlockAkashicFloodfiller.canItBeFloodedThrough(neighbor, bs, this.level)) {
todo.add(neighbor);
if (this.level.getBlockEntity(neighbor) instanceof BlockEntityAkashicBookshelf)
if (this.level.getBlockEntity(neighbor) instanceof BlockEntityAkashicBookshelf &&
bs.hasProperty(BlockAkashicBookshelf.DATUM_TYPE) &&
bs.getValue(BlockAkashicBookshelf.DATUM_TYPE) != DatumType.EMPTY)
validPoses.add(neighbor);
}
}