mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Fixed horns not glowing
This commit is contained in:
parent
ba0ab4149e
commit
ff800006f7
1 changed files with 4 additions and 5 deletions
|
@ -26,13 +26,11 @@ public class UnicornHorn implements IPart {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderPart(MatrixStack stack, VertexConsumer vertices, int overlayUv, int lightUv, float red, float green, float blue, float alpha, ModelAttributes attributes) {
|
public void renderPart(MatrixStack stack, VertexConsumer vertices, int overlayUv, int lightUv, float red, float green, float blue, float alpha, ModelAttributes attributes) {
|
||||||
if (visible) {
|
horn.render(stack, vertices, overlayUv, lightUv, red, green, blue, alpha);
|
||||||
horn.render(stack, vertices, overlayUv, lightUv, red, green, blue, alpha);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void renderMagic(MatrixStack stack, VertexConsumer verts, int tint) {
|
public void renderMagic(MatrixStack stack, VertexConsumer verts, int tint) {
|
||||||
if (visible) {
|
if (glow.visible) {
|
||||||
Immediate immediate = MinecraftClient.getInstance().getBufferBuilders().getEntityVertexConsumers();
|
Immediate immediate = MinecraftClient.getInstance().getBufferBuilders().getEntityVertexConsumers();
|
||||||
|
|
||||||
VertexConsumer vertices = immediate.getBuffer(MagicGlow.getRenderLayer());
|
VertexConsumer vertices = immediate.getBuffer(MagicGlow.getRenderLayer());
|
||||||
|
@ -43,6 +41,7 @@ public class UnicornHorn implements IPart {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setVisible(boolean visible, ModelAttributes attributes) {
|
public void setVisible(boolean visible, ModelAttributes attributes) {
|
||||||
this.visible = visible;
|
horn.visible = visible;
|
||||||
|
glow.visible = visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue