Simplify return statement

This commit is contained in:
thatsIch
2014-11-04 02:22:48 +01:00
parent 7d7a2ad334
commit b60321a9ca
@@ -144,9 +144,8 @@ final public class EntityGrowingCrystal extends EntityItem
private boolean isAccelerated(int x, int y, int z)
{
TileEntity te = worldObj.getTileEntity( x, y, z );
if ( te instanceof ICrystalGrowthAccelerator )
return ((ICrystalGrowthAccelerator) te).isPowered();
return false;
return te instanceof ICrystalGrowthAccelerator && ( ( ICrystalGrowthAccelerator ) te ).isPowered();
}
}