Skip to content

Commit cb0d59b

Browse files
committed
be consistent
1 parent d9f1f30 commit cb0d59b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/main/java/com/simibubi/create/content/schematics/cannon/SchematicannonBlockEntity.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ protected void initializePrinter(ItemStack blueprint) {
437437
if (!blueprint.hasTag()) {
438438
state = State.STOPPED;
439439
statusMsg = "schematicInvalid";
440+
inventory.setStackInSlot(1, inventory.getStackInSlot(0).copy());
441+
inventory.setStackInSlot(0, ItemStack.EMPTY);
440442
sendUpdate = true;
441443
return;
442444
}
@@ -445,6 +447,8 @@ protected void initializePrinter(ItemStack blueprint) {
445447
.getBoolean("Deployed")) {
446448
state = State.STOPPED;
447449
statusMsg = "schematicNotPlaced";
450+
inventory.setStackInSlot(1, inventory.getStackInSlot(0).copy());
451+
inventory.setStackInSlot(0, ItemStack.EMPTY);
448452
sendUpdate = true;
449453
return;
450454
}
@@ -455,8 +459,8 @@ protected void initializePrinter(ItemStack blueprint) {
455459
if (printer.isErrored()) {
456460
state = State.STOPPED;
457461
statusMsg = "schematicErrored";
458-
inventory.setStackInSlot(0, ItemStack.EMPTY);
459462
inventory.setStackInSlot(1, new ItemStack(AllItems.EMPTY_SCHEMATIC.get()));
463+
inventory.setStackInSlot(0, ItemStack.EMPTY);
460464
printer.resetSchematic();
461465
sendUpdate = true;
462466
return;
@@ -465,8 +469,8 @@ protected void initializePrinter(ItemStack blueprint) {
465469
if (printer.isWorldEmpty()) {
466470
state = State.STOPPED;
467471
statusMsg = "schematicExpired";
468-
inventory.setStackInSlot(0, ItemStack.EMPTY);
469472
inventory.setStackInSlot(1, new ItemStack(AllItems.EMPTY_SCHEMATIC.get()));
473+
inventory.setStackInSlot(0, ItemStack.EMPTY);
470474
printer.resetSchematic();
471475
sendUpdate = true;
472476
return;
@@ -570,8 +574,8 @@ protected boolean grabItemsFromAttachedInventories(ItemRequirement.StackRequirem
570574
public void finishedPrinting() {
571575
if (replaceMode == ConfigureSchematicannonPacket.Option.REPLACE_EMPTY.ordinal())
572576
printer.sendBlockUpdates(level);
573-
inventory.setStackInSlot(0, ItemStack.EMPTY);
574577
inventory.setStackInSlot(1, new ItemStack(AllItems.EMPTY_SCHEMATIC.get()));
578+
inventory.setStackInSlot(0, ItemStack.EMPTY);
575579
state = State.STOPPED;
576580
statusMsg = "finished";
577581
resetPrinter();

0 commit comments

Comments
 (0)