Fix patterns needing to be encoded twice
This commit is contained in:
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user