Skip to content

Commit

Permalink
fix PositionSelectScreen#draw not being called
Browse files Browse the repository at this point in the history
  • Loading branch information
uku3lig committed Dec 13, 2022
1 parent 0ffa563 commit acd4f39
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.client.resource.language.I18n;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.LiteralText;
import net.uku3lig.ukulib.config.ConfigManager;
import org.lwjgl.glfw.GLFW;
Expand Down Expand Up @@ -100,17 +99,17 @@ public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
/**
* Draws the screen and all the components in it.
* Called in {@link PositionSelectScreen#render(int, int, float)}.
* @param matrices The matrix stack
* @param mouseX The x position of the mouse
* @param mouseY The y position of the mouse
* @param delta The delta time
*/
public abstract void draw(MatrixStack matrices, int mouseX, int mouseY, float delta);
public abstract void draw(int mouseX, int mouseY, float delta);

@Override
public void render(int mouseX, int mouseY, float delta) {
this.renderBackground();
this.drawCenteredString(this.font, this.title.asFormattedString(), this.width / 2, 20, 0xFFFFFF);
draw(mouseX, mouseY, delta);
super.render(mouseX, mouseY, delta);
}
}

0 comments on commit acd4f39

Please sign in to comment.