修复狗牌GUI问题

This commit is contained in:
Light_Quanta 2025-07-15 00:43:29 +08:00
parent a34fe36a2b
commit b27b4d6da7
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -9,6 +9,7 @@ import net.minecraft.client.GameNarrator;
import net.minecraft.client.gui.GuiGraphics;
import net.minecraft.client.gui.components.AbstractButton;
import net.minecraft.client.gui.components.EditBox;
import net.minecraft.client.gui.components.Renderable;
import net.minecraft.client.gui.narration.NarrationElementOutput;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.core.component.DataComponents;
@ -84,7 +85,9 @@ public class DogTagEditorScreen extends Screen {
public void render(@NotNull GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) {
this.renderBackground(pGuiGraphics, pMouseX, pMouseY, pPartialTick);
this.renderBg(pGuiGraphics);
super.render(pGuiGraphics, pMouseX, pMouseY, pPartialTick);
for (Renderable renderable : this.renderables) {
renderable.render(pGuiGraphics, pMouseX, pMouseY, pPartialTick);
}
this.name.render(pGuiGraphics, pMouseX, pMouseY, pPartialTick);
}