From 3e878092be26a5471e5db99f6e4d0d992cfb47fc Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 19 Nov 2024 20:32:15 +0000 Subject: [PATCH] Fixed texture sprites not rendering correctly --- .../common/client/gui/sprite/TextureSprite.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/common/client/gui/sprite/TextureSprite.java b/src/main/java/com/minelittlepony/common/client/gui/sprite/TextureSprite.java index 930b31f0..499ff6f0 100644 --- a/src/main/java/com/minelittlepony/common/client/gui/sprite/TextureSprite.java +++ b/src/main/java/com/minelittlepony/common/client/gui/sprite/TextureSprite.java @@ -3,6 +3,7 @@ import com.minelittlepony.common.client.gui.dimension.Bounds; import net.minecraft.client.gui.DrawContext; import net.minecraft.client.render.RenderLayer; +import net.minecraft.util.Colors; import net.minecraft.util.Identifier; public class TextureSprite implements ISprite { @@ -52,10 +53,10 @@ public void render(DrawContext context, int x, int y, int mouseX, int mouseY, fl RenderLayer::getGuiTextured, texture, x + bounds.left, y + bounds.top, - 0, textureBounds.left, textureBounds.top, bounds.width, bounds.height, - textureBounds.width, textureBounds.height); + textureBounds.width, textureBounds.height, + Colors.WHITE); } @Override