do not use java equals to compare stacks
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user