Deleted redundant null checks
This commit is contained in:
@@ -112,7 +112,7 @@ public class SlotCraftingTerm extends AppEngCraftingSlot
|
||||
|
||||
is = r.getCraftingResult( ic );
|
||||
|
||||
if ( r != null && inv != null )
|
||||
if ( inv != null )
|
||||
{
|
||||
for (int x = 0; x < pattern.getSizeInventory(); x++)
|
||||
{
|
||||
|
||||
@@ -196,7 +196,7 @@ public class SlotRestrictedInput extends AppEngSlot
|
||||
case STORAGE_CELLS:
|
||||
return AEApi.instance().registries().cell().isCellHandled( i );
|
||||
case WORKBENCH_CELL:
|
||||
return i != null && i.getItem() instanceof ICellWorkbenchItem && ((ICellWorkbenchItem) i.getItem()).isEditable( i );
|
||||
return i.getItem() instanceof ICellWorkbenchItem && ((ICellWorkbenchItem) i.getItem()).isEditable( i );
|
||||
case STORAGE_COMPONENT:
|
||||
boolean isComp = i.getItem() instanceof IStorageComponent && ((IStorageComponent) i.getItem()).isStorageComponent( i );
|
||||
return isComp;
|
||||
|
||||
Reference in New Issue
Block a user