1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-29 16:47:56 +00:00

Fix endPage() not updating the printer block state

This meant that we didn't show the bottom slot was full until other
items were moved in the inventory.
This commit is contained in:
Jonathan Coates
2024-01-14 12:23:06 +00:00
parent 9d4af07568
commit 4d1e689719

View File

@@ -225,7 +225,9 @@ public final class PrinterBlockEntity extends AbstractContainerBlockEntity imple
var stack = PrintoutItem.createSingleFromTitleAndText(pageTitle, lines, colours);
for (var slot : BOTTOM_SLOTS) {
if (inventory.get(slot).isEmpty()) {
setItem(slot, stack);
inventory.set(slot, stack);
updateBlockState();
setChanged();
printing = false;
return true;
}