Only wrap shader render layers if shaders are enabled. May fix #3284. Also fix gaia head facing the wrong way in item form.

This commit is contained in:
Vincent Lee committed 2020-05-07 10:33:26 -05:00
1 parent f745a18901
commit 33ab18bef9
5 files changed
+40 -21

No files matched your search

@@ -102,7 +102,9 @@ public class RenderDoppleganger extends BipedRenderer<EntityDoppleganger, BipedM
private static class Model extends BipedModel<EntityDoppleganger> {
private static RenderType makeRenderType(ResourceLocation texture) {
RenderType normal = RenderType.getEntityTranslucent(texture);
return new ShaderWrappedRenderLayer(ShaderHelper.BotaniaShader.DOPPLEGANGER, CALLBACK, normal);
return ShaderHelper.useShaders()
? new ShaderWrappedRenderLayer(ShaderHelper.BotaniaShader.DOPPLEGANGER, CALLBACK, normal)
: normal;
}
Model() {