mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Fix glow panel models on texture rebake
This commit is contained in:
1 parent
5ca5288736
commit
48a493a2a0
2 files changed
+7
No files matched your search
@@ -72,6 +72,12 @@ public class GlowPanelModel extends OBJBakedModel implements ISmartMultipartMode
|
||||
baseModel = base;
|
||||
transformationMap = transform;
|
||||
}
|
||||
|
||||
public static void forceRebake()
|
||||
{
|
||||
glowPanelCache.clear();
|
||||
glowPanelItemCache.clear();
|
||||
}
|
||||
|
||||
public EnumColor getColor()
|
||||
{
|
||||
|
||||
@@ -43,6 +43,7 @@ public class MekanismOBJLoader extends OBJLoader
|
||||
@SubscribeEvent
|
||||
public void onModelBake(ModelBakeEvent event) throws IOException
|
||||
{
|
||||
GlowPanelModel.forceRebake();
|
||||
for(String s : OBJ_RENDERS)
|
||||
{
|
||||
ModelResourceLocation model = new ModelResourceLocation("mekanism:" + s, "inventory");
|
||||
|
||||
Reference in new issue
Block a user