Skip to content

Commit

Permalink
Don't use var in fallback config screen
Browse files Browse the repository at this point in the history
  • Loading branch information
LostLuma committed Jun 1, 2024
1 parent 422d046 commit 0bfa290
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public FallbackConfigScreen(Screen parent) {

@Override
protected void init() {
var width = 152;
var height = 20;
var x = (this.width - width) / 2;
var y = this.height - height - 5;
int width = 152;
int height = 20;
int x = (this.width - width) / 2;
int y = this.height - height - 5;

this.addRenderableWidget(
Button.builder(CommonComponents.GUI_BACK, button -> this.onClose()).bounds(x, y, width, height).build()
Expand All @@ -35,8 +35,8 @@ protected void init() {
public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) {
super.render(guiGraphics, mouseX, mouseY, partialTicks);

var width = guiGraphics.guiWidth() / 2;
var height = guiGraphics.guiHeight() / 3;
int width = guiGraphics.guiWidth() / 2;
int height = guiGraphics.guiHeight() / 3;

guiGraphics.drawCenteredString(this.font, WARNING_0.getVisualOrderText(), width, height, 0xFFFFFF);
guiGraphics.drawCenteredString(this.font, WARNING_1.getVisualOrderText(), width, height + 10, 0xFFFFFF);
Expand Down

0 comments on commit 0bfa290

Please sign in to comment.