Fix patterns needing to be encoded twice

This commit is contained in:
PrototypeTrousers
2022-09-10 08:35:40 -03:00
parent 6277058167
commit 1ed654843c
2 changed files with 3 additions and 4 deletions
@@ -120,7 +120,7 @@ public class AppEngSlot extends Slot
{ {
if( this.isSlotEnabled() ) if( this.isSlotEnabled() )
{ {
ItemHandlerUtil.setStackInSlot( this.itemHandler, this.index, stack.copy() ); ItemHandlerUtil.setStackInSlot( this.itemHandler, this.index, stack );
if( this.getContainer() != null ) if( this.getContainer() != null )
{ {
@@ -77,11 +77,10 @@ public class AppEngInternalInventory extends ItemStackHandler implements Iterabl
@Override @Override
public void setStackInSlot( int slot, @Nonnull ItemStack stack ) public void setStackInSlot( int slot, @Nonnull ItemStack stack )
{ {
if( stack == this.getStackInSlot( slot ) ) if( stack != this.getStackInSlot( slot ) )
{ {
return; this.previousStack = this.getStackInSlot( slot ).copy();
} }
this.previousStack = this.getStackInSlot( slot ).copy();
super.setStackInSlot( slot, stack ); super.setStackInSlot( slot, stack );
} }