mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Glow Panels render in item form, use getEffectiveSide() instead of isRemote when checking packet security
This commit is contained in:
1 parent
64f60150df
commit
c002ac6d8a
67 files changed
+394
-169
No files matched your search
@@ -11,15 +11,30 @@ import com.google.common.base.Function;
|
||||
|
||||
public class MekanismOBJModel extends OBJModel
|
||||
{
|
||||
public MekanismOBJModel(MaterialLibrary matLib, ResourceLocation modelLocation)
|
||||
public OBJModelType modelType;
|
||||
|
||||
public MekanismOBJModel(OBJModelType type, MaterialLibrary matLib, ResourceLocation modelLocation)
|
||||
{
|
||||
super(matLib, modelLocation);
|
||||
|
||||
modelType = type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFlexibleBakedModel bake(IModelState state, VertexFormat format, Function<ResourceLocation, TextureAtlasSprite> bakedTextureGetter)
|
||||
{
|
||||
IFlexibleBakedModel preBaked = super.bake(state, format, bakedTextureGetter);
|
||||
return new MekanismSmartOBJModel(preBaked, this, state, format, MekanismSmartOBJModel.getTexturesForOBJModel(preBaked), null);
|
||||
|
||||
if(modelType == OBJModelType.GLOW_PANEL)
|
||||
{
|
||||
return new GlowPanelModel(preBaked, this, state, format, GlowPanelModel.getTexturesForOBJModel(preBaked), null);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static enum OBJModelType
|
||||
{
|
||||
GLOW_PANEL
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user