Fixed StackOverflowError when two connected inventory scanners are placed above each other
this does not happen in v1.9.0.2, hence no changelog entry
@@ -384,10 +384,12 @@ public class InventoryScannerBlockEntity extends DisguisableBlockEntity implemen
}
public void setHorizontal(boolean isHorizontal) {
+ if (horizontal.get() != isHorizontal) {
horizontal.setValue(isHorizontal);
level.setBlockAndUpdate(worldPosition, getBlockState().setValue(InventoryScannerBlock.HORIZONTAL, isHorizontal));
setChanged();
}
+ }
public boolean isHorizontal() {
return horizontal.get();
