mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-11-05 01:26:20 +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:
parent
9d4af07568
commit
4d1e689719
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user