Fixed issue with Upgrades not having correct maximums.
This commit is contained in:
@@ -65,7 +65,6 @@ public class UpgradeInventory extends AppEngInternalInventory implements IAEAppE
|
||||
private int getMaxInstalled(Upgrades u)
|
||||
{
|
||||
Integer max = null;
|
||||
|
||||
for (ItemStack is : u.getSupported().keySet())
|
||||
{
|
||||
if ( is.getItem() == itemorblock )
|
||||
@@ -78,6 +77,11 @@ public class UpgradeInventory extends AppEngInternalInventory implements IAEAppE
|
||||
max = u.getSupported().get( is );
|
||||
break;
|
||||
}
|
||||
else if ( itemorblock instanceof ItemStack && Platform.isSameItem( (ItemStack) itemorblock, is ) )
|
||||
{
|
||||
max = u.getSupported().get( is );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ( max == null )
|
||||
|
||||
Reference in New Issue
Block a user