Merge branch 'master' of https://bitbucket.org/AlgorithmX2/appliedenergistics2
This commit is contained in:
commit
5675f5c5fd
3 changed files with 12 additions and 6 deletions
|
@ -12,7 +12,7 @@ public class FlipableIcon implements IIcon
|
|||
public FlipableIcon(IIcon o) {
|
||||
|
||||
if ( o == null )
|
||||
throw new RuntimeException("Cannot create a wrapper icon with a null icon.");
|
||||
throw new RuntimeException( "Cannot create a wrapper icon with a null icon." );
|
||||
|
||||
original = o;
|
||||
flip_u = false;
|
||||
|
|
|
@ -1,12 +1,15 @@
|
|||
package appeng.client.texture;
|
||||
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
public class TmpFlipableIcon extends FlipableIcon
|
||||
{
|
||||
|
||||
private static final IIcon nullIcon = new MissingIcon( Blocks.diamond_block );
|
||||
|
||||
public TmpFlipableIcon() {
|
||||
super( null );
|
||||
super( nullIcon );
|
||||
}
|
||||
|
||||
public void setOriginal(IIcon i)
|
||||
|
@ -14,7 +17,10 @@ public class TmpFlipableIcon extends FlipableIcon
|
|||
while (i instanceof FlipableIcon)
|
||||
i = ((FlipableIcon) i).getOriginal();
|
||||
|
||||
original = i;
|
||||
if ( i == null )
|
||||
original = nullIcon;
|
||||
else
|
||||
original = i;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -603,7 +603,7 @@ public class CableBusContainer implements AEMultiTile, ICableBusContainer
|
|||
throw new RuntimeException( "Invalid Stream For CableBus Container." );
|
||||
}
|
||||
}
|
||||
else
|
||||
else if ( getPart( side ) != null )
|
||||
removePart( side, false );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue