This commit is contained in:
Vincent Lee committed 2020-05-07 10:33:55 -05:00
1 parent 33ab18bef9
commit 14a78541fa
2 files changed
+5 -5

No files matched your search

@@ -103,8 +103,8 @@ public class RenderDoppleganger extends BipedRenderer<EntityDoppleganger, BipedM
private static RenderType makeRenderType(ResourceLocation texture) {
RenderType normal = RenderType.getEntityTranslucent(texture);
return ShaderHelper.useShaders()
? new ShaderWrappedRenderLayer(ShaderHelper.BotaniaShader.DOPPLEGANGER, CALLBACK, normal)
: normal;
? new ShaderWrappedRenderLayer(ShaderHelper.BotaniaShader.DOPPLEGANGER, CALLBACK, normal)
: normal;
}
Model() {
@@ -65,7 +65,7 @@ public class RenderTileGaiaHead extends SkullTileEntityRenderer {
BlockState blockstate = skull.getBlockState();
boolean flag = blockstate.getBlock() instanceof WallSkullBlock;
direction = flag ? blockstate.get(WallSkullBlock.FACING) : null;
angle = 22.5F * (float)(flag ? (2 + direction.getHorizontalIndex()) * 4 : blockstate.get(SkullBlock.ROTATION));
angle = 22.5F * (float) (flag ? (2 + direction.getHorizontalIndex()) * 4 : blockstate.get(SkullBlock.ROTATION));
}
Entity view = Minecraft.getInstance().getRenderViewEntity();
@@ -134,7 +134,7 @@ public class RenderTileGaiaHead extends SkullTileEntityRenderer {
}
return ShaderHelper.useShaders()
? new ShaderWrappedRenderLayer(ShaderHelper.BotaniaShader.DOPPLEGANGER, RenderDoppleganger.defaultCallback, base)
: base;
? new ShaderWrappedRenderLayer(ShaderHelper.BotaniaShader.DOPPLEGANGER, RenderDoppleganger.defaultCallback, base)
: base;
}
}