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
@@ -301,7 +301,7 @@ public class AEBasePart implements IPart, IGridProxyable, IActionHost, IUpgradea
{
if ( compound != null )
{
IConfigManager cm = ((IConfigurableObject) this).getConfigManager();
IConfigManager cm = this.getConfigManager();
if ( cm != null )
cm.readFromNBT( compound );
}
@@ -312,7 +312,7 @@ public class AEBasePart implements IPart, IGridProxyable, IActionHost, IUpgradea
pHost.setPriority( compound.getInteger( "priority" ) );
}
IInventory inv = ((ISegmentedInventory) this).getInventoryByName( "config" );
IInventory inv = this.getInventoryByName( "config" );
if ( inv != null && inv instanceof AppEngInternalAEInventory )
{
AppEngInternalAEInventory target = (AppEngInternalAEInventory) inv;
@@ -343,7 +343,7 @@ public class AEBasePart implements IPart, IGridProxyable, IActionHost, IUpgradea
output.setInteger( "priority", pHost.getPriority() );
}
IInventory inv = ((ISegmentedInventory) this).getInventoryByName( "config" );
IInventory inv = this.getInventoryByName( "config" );
if ( inv != null && inv instanceof AppEngInternalAEInventory )
{
((AppEngInternalAEInventory) inv).writeToNBT( output, "config" );