reduces overly strong type cast
This commit is contained in:
@@ -24,6 +24,9 @@ import java.util.EnumSet;
|
||||
import java.util.List;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import com.google.common.base.Optional;
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
@@ -53,9 +56,6 @@ import cpw.mods.fml.relauncher.ReflectionHelper;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
import com.google.common.base.Optional;
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import appeng.api.implementations.items.IMemoryCard;
|
||||
import appeng.api.implementations.items.MemoryCardMessages;
|
||||
import appeng.api.implementations.tiles.IColorableTile;
|
||||
@@ -627,7 +627,7 @@ public class AEBaseBlock extends BlockContainer implements IAEFeature
|
||||
|
||||
if( this.hasBlockTileEntity() )
|
||||
{
|
||||
rotatable = (AEBaseTile) this.getTileEntity( w, x, y, z );
|
||||
rotatable = (IOrientable) this.getTileEntity( w, x, y, z );
|
||||
}
|
||||
else if( this instanceof IOrientableBlock )
|
||||
{
|
||||
@@ -758,7 +758,7 @@ public class AEBaseBlock extends BlockContainer implements IAEFeature
|
||||
|
||||
if( this.hasBlockTileEntity() )
|
||||
{
|
||||
ori = (AEBaseTile) this.getTileEntity( w, x, y, z );
|
||||
ori = (IOrientable) this.getTileEntity( w, x, y, z );
|
||||
}
|
||||
else if( this instanceof IOrientableBlock )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user