Fix Crash When using Debug Blocks.
Register Quartz/Fluix Blocks with BC Facades.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
package appeng.client.render;
|
||||
|
||||
import appeng.client.texture.FlipableIcon;
|
||||
import appeng.client.texture.TmpFlipableIcon;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import appeng.client.texture.FlipableIcon;
|
||||
import appeng.client.texture.TmpFlipableIcon;
|
||||
|
||||
public class BlockRenderInfo
|
||||
{
|
||||
@@ -29,8 +29,7 @@ public class BlockRenderInfo
|
||||
private FlipableIcon eastIcon = null;
|
||||
private FlipableIcon westIcon = null;
|
||||
|
||||
public void updateIcons(FlipableIcon Bottom, FlipableIcon Top, FlipableIcon North, FlipableIcon South, FlipableIcon East,
|
||||
FlipableIcon West)
|
||||
public void updateIcons(FlipableIcon Bottom, FlipableIcon Top, FlipableIcon North, FlipableIcon South, FlipableIcon East, FlipableIcon West)
|
||||
{
|
||||
topIcon = Top;
|
||||
bottomIcon = Bottom;
|
||||
@@ -57,8 +56,7 @@ public class BlockRenderInfo
|
||||
}
|
||||
}
|
||||
|
||||
public void setTemporaryRenderIcons(IIcon nTopIcon, IIcon nBottomIcon, IIcon nSouthIcon, IIcon nNorthIcon, IIcon nEastIcon,
|
||||
IIcon nWestIcon)
|
||||
public void setTemporaryRenderIcons(IIcon nTopIcon, IIcon nBottomIcon, IIcon nSouthIcon, IIcon nNorthIcon, IIcon nEastIcon, IIcon nWestIcon)
|
||||
{
|
||||
tmpTopIcon.setOriginal( nTopIcon == null ? getTexture( ForgeDirection.UP ) : nTopIcon );
|
||||
tmpBottomIcon.setOriginal( nBottomIcon == null ? getTexture( ForgeDirection.DOWN ) : nBottomIcon );
|
||||
@@ -115,8 +113,7 @@ public class BlockRenderInfo
|
||||
|
||||
public boolean isValid()
|
||||
{
|
||||
return topIcon != null && bottomIcon != null && southIcon != null && northIcon != null && eastIcon != null
|
||||
&& westIcon != null;
|
||||
return topIcon != null && bottomIcon != null && southIcon != null && northIcon != null && eastIcon != null && westIcon != null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
package appeng.client.texture;
|
||||
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
public class MissingIcon implements IIcon
|
||||
{
|
||||
|
||||
@Override
|
||||
public int getIconWidth()
|
||||
{
|
||||
return ExtraTextures.getMissing().getIconWidth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconHeight()
|
||||
{
|
||||
return ExtraTextures.getMissing().getIconHeight();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMinU()
|
||||
{
|
||||
return ExtraTextures.getMissing().getMinU();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMaxU()
|
||||
{
|
||||
return ExtraTextures.getMissing().getMaxU();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getInterpolatedU(double var1)
|
||||
{
|
||||
return ExtraTextures.getMissing().getInterpolatedU( var1 );
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMinV()
|
||||
{
|
||||
return ExtraTextures.getMissing().getMinV();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMaxV()
|
||||
{
|
||||
return ExtraTextures.getMissing().getMaxV();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getInterpolatedV(double var1)
|
||||
{
|
||||
return ExtraTextures.getMissing().getInterpolatedV( var1 );
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIconName()
|
||||
{
|
||||
return ExtraTextures.getMissing().getIconName();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user