@@ -437,6 +437,8 @@ protected void initializePrinter(ItemStack blueprint) {
437
437
if (!blueprint .hasTag ()) {
438
438
state = State .STOPPED ;
439
439
statusMsg = "schematicInvalid" ;
440
+ inventory .setStackInSlot (1 , inventory .getStackInSlot (0 ).copy ());
441
+ inventory .setStackInSlot (0 , ItemStack .EMPTY );
440
442
sendUpdate = true ;
441
443
return ;
442
444
}
@@ -445,6 +447,8 @@ protected void initializePrinter(ItemStack blueprint) {
445
447
.getBoolean ("Deployed" )) {
446
448
state = State .STOPPED ;
447
449
statusMsg = "schematicNotPlaced" ;
450
+ inventory .setStackInSlot (1 , inventory .getStackInSlot (0 ).copy ());
451
+ inventory .setStackInSlot (0 , ItemStack .EMPTY );
448
452
sendUpdate = true ;
449
453
return ;
450
454
}
@@ -455,8 +459,8 @@ protected void initializePrinter(ItemStack blueprint) {
455
459
if (printer .isErrored ()) {
456
460
state = State .STOPPED ;
457
461
statusMsg = "schematicErrored" ;
458
- inventory .setStackInSlot (0 , ItemStack .EMPTY );
459
462
inventory .setStackInSlot (1 , new ItemStack (AllItems .EMPTY_SCHEMATIC .get ()));
463
+ inventory .setStackInSlot (0 , ItemStack .EMPTY );
460
464
printer .resetSchematic ();
461
465
sendUpdate = true ;
462
466
return ;
@@ -465,8 +469,8 @@ protected void initializePrinter(ItemStack blueprint) {
465
469
if (printer .isWorldEmpty ()) {
466
470
state = State .STOPPED ;
467
471
statusMsg = "schematicExpired" ;
468
- inventory .setStackInSlot (0 , ItemStack .EMPTY );
469
472
inventory .setStackInSlot (1 , new ItemStack (AllItems .EMPTY_SCHEMATIC .get ()));
473
+ inventory .setStackInSlot (0 , ItemStack .EMPTY );
470
474
printer .resetSchematic ();
471
475
sendUpdate = true ;
472
476
return ;
@@ -570,8 +574,8 @@ protected boolean grabItemsFromAttachedInventories(ItemRequirement.StackRequirem
570
574
public void finishedPrinting () {
571
575
if (replaceMode == ConfigureSchematicannonPacket .Option .REPLACE_EMPTY .ordinal ())
572
576
printer .sendBlockUpdates (level );
573
- inventory .setStackInSlot (0 , ItemStack .EMPTY );
574
577
inventory .setStackInSlot (1 , new ItemStack (AllItems .EMPTY_SCHEMATIC .get ()));
578
+ inventory .setStackInSlot (0 , ItemStack .EMPTY );
575
579
state = State .STOPPED ;
576
580
statusMsg = "finished" ;
577
581
resetPrinter ();
0 commit comments