1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-17 02:40:06 +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
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -225,7 +225,9 @@ private boolean outputPage() {
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;
}