Fixed mana bar not rendering

This commit is contained in:
Sollace 2021-08-06 01:05:13 +02:00
parent 85aa627149
commit 62dc7ffa1b

View file

@ -5,6 +5,7 @@ import com.minelittlepony.unicopia.ability.AbilitySlot;
import com.minelittlepony.unicopia.client.KeyBindingsHandler;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.client.render.GameRenderer;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.Text;
import net.minecraft.util.math.MathHelper;
@ -97,9 +98,10 @@ class Slot {
// progress
UHud.fill(matrices, slotPadding, progressTop, size - slotPadding, progressBottom, 0xCFFFFFFF);
RenderSystem.enableBlend();
}
RenderSystem.setShader(GameRenderer::getPositionColorShader);
renderContents(matrices, abilities, bSwap, tickDelta);
matrices.pop();
}