mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 23:13:09 +00:00
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:
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() {
|
||||
|
||||
Reference in new issue
Block a user