Added IMC microblock material registering. modId = "ForgeMicroblock", key = "microMaterial", value = ItemStack(block, _, meta)

Fixed some material icon loading inconsistencies.
This commit is contained in:
Chicken-Bones committed 2013-11-12 17:52:14 +10:00
1 parent bb13dbd65c
commit ee4071384d
5 files changed
+49 -16

No files matched your search

@@ -28,7 +28,7 @@ object MicroblockEventHandler extends IConnectionHandler
@SideOnly(Side.CLIENT)
def postTextureStitch(event:TextureStitchEvent.Post)
{
if(Loader.instance.hasReachedState(LoaderState.POSTINITIALIZATION))
if(event.map.textureType == 0 && Loader.instance.hasReachedState(LoaderState.POSTINITIALIZATION))
MicroMaterialRegistry.getIdMap.foreach(e => e._2.loadIcons())
}