Removes not needed casts

This commit is contained in:
thatsIch
2014-09-29 09:42:50 +02:00
parent 640d888d13
commit 3ce47a167f
10 changed files with 21 additions and 21 deletions
+3 -3
View File
@@ -856,7 +856,7 @@ public class Platform
if ( willAdd == null )
return false;
IAETagCompound tag = willAdd.getTagCompound();
if ( tag != null && ((AESharedNBT) tag).getSpecialComparison() != null )
if ( tag != null && tag.getSpecialComparison() != null )
return true;
return false;
}
@@ -1548,7 +1548,7 @@ public class Platform
if ( grid == null )
return false;
IEnergyGrid eg = (IEnergyGrid) grid.getCache( IEnergyGrid.class );
IEnergyGrid eg = grid.getCache( IEnergyGrid.class );
return eg.isNetworkPowered();
}
@@ -1557,7 +1557,7 @@ public class Platform
if ( grid == null )
return false;
ISecurityGrid gs = (ISecurityGrid) grid.getCache( ISecurityGrid.class );
ISecurityGrid gs = grid.getCache( ISecurityGrid.class );
if ( gs == null )
return false;
+1 -1
View File
@@ -119,7 +119,7 @@ public final class ItemList<StackType extends IAEStack> implements IItemList<Sta
if ( st != null )
{
// st.setPriority( currentPriority );
((IAEItemStack) st).setCountRequestable( ((IAEItemStack) st).getCountRequestable() + ((IAEItemStack) option).getCountRequestable() );
((IAEItemStack) st).setCountRequestable( st.getCountRequestable() + option.getCountRequestable() );
return;
}