do not use java equals to compare stacks

This commit is contained in:
Salomão
2021-02-20 21:18:20 -03:00
parent 42f0d37c44
commit 92b48f01a2
2 changed files with 2 additions and 2 deletions
@@ -260,7 +260,7 @@ public class CraftingTreeProcess
{
for( final IAEItemStack is : this.details.getCondensedOutputs() )
{
if( is.equals( what2 ) )
if( is.isSameType( what2 ) )
{
what2 = what2.copy();
what2.setStackSize( is.getStackSize() );
@@ -1113,7 +1113,7 @@ public final class CraftingCPUCluster implements IAECluster, ICraftingCPU
{
for( final IAEItemStack ais : t.getKey().getCondensedOutputs() )
{
if( ais.equals( is ) )
if( ais.isSameType( is ) )
{
is.setStackSize( is.getStackSize() + ais.getStackSize() * t.getValue().value );
}