Fix Crash When using Debug Blocks.

Register Quartz/Fluix Blocks with BC Facades.
This commit is contained in:
AlgorithmX2
2014-02-23 14:06:07 -06:00
parent 15f300c553
commit 5e0bf9c5b9
6 changed files with 85 additions and 10 deletions
+8
View File
@@ -32,6 +32,7 @@ import appeng.client.render.BaseBlockRender;
import appeng.client.render.BlockRenderInfo;
import appeng.client.render.WorldRender;
import appeng.client.texture.FlipableIcon;
import appeng.client.texture.MissingIcon;
import appeng.core.features.AEFeature;
import appeng.core.features.AEFeatureHandler;
import appeng.core.features.IAEFeature;
@@ -134,6 +135,13 @@ public class AEBaseBlock extends BlockContainer implements IAEFeature
info.updateIcons( bottomIcon, topIcon, northIcon, southIcon, eastIcon, westIcon );
}
public void registerNoIcons()
{
BlockRenderInfo info = getRendererInstance();
FlipableIcon i = new FlipableIcon( new MissingIcon() );
info.updateIcons( i, i, i, i, i, i );
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int direction, int metadata)