No more errors, the game launches, rejoice!

This commit is contained in:
aidancbrady committed 2016-05-26 03:14:44 -04:00
1 parent 79af86daae
commit ceec3e71e9
67 files changed
+951 -676

No files matched your search

@@ -134,17 +134,22 @@ public class GlowPanelModel extends OBJBakedModelBase
return ImmutableList.of();
}
int hash = PartGlowPanel.hash((IExtendedBlockState)state);
EnumColor color = ((IExtendedBlockState)state).getValue(ColorProperty.INSTANCE).color;
if(!glowPanelCache.containsKey(hash))
{
GlowPanelModel model = new GlowPanelModel(baseModel, getModel(), getState(), vertexFormat, textureMap, transformationMap);
model.tempState = state;
glowPanelCache.put(hash, model.getQuads(state, side, rand));
}
return glowPanelCache.get(hash);
if(state != null && tempState == null)
{
int hash = PartGlowPanel.hash((IExtendedBlockState)state);
EnumColor color = ((IExtendedBlockState)state).getValue(ColorProperty.INSTANCE).color;
if(!glowPanelCache.containsKey(hash))
{
GlowPanelModel model = new GlowPanelModel(baseModel, getModel(), getState(), vertexFormat, textureMap, transformationMap);
model.tempState = state;
glowPanelCache.put(hash, model.getQuads(state, side, rand));
}
return glowPanelCache.get(hash);
}
return super.getQuads(state, side, rand);
}
@Override