Skip to content

Commit e88a880

Browse files
committed
be consistent
1 parent d9f1f30 commit e88a880

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 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;

0 commit comments

Comments
 (0)