Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NotRyken committed Nov 19, 2024
1 parent 290f98e commit f086fa3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ plugins {

dependencies {
compileOnly("org.spongepowered:mixin:${mixin_version}")
compileOnly("io.github.llamalad7:mixinextras-common:${mixinextras_version}")
annotationProcessor("io.github.llamalad7:mixinextras-common:${mixinextras_version}")
compileOnly(annotationProcessor("io.github.llamalad7:mixinextras-common:${mixinextras_version}"))
}

neoForge {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public boolean mouseReleased(double mouseX, double mouseY, int delta) {
}

@Override
public void render(@NotNull GuiGraphics context, int mouseX, int mouseY, float delta) {
super.render(context, mouseX, mouseY, delta);
public void render(@NotNull GuiGraphics graphics, int mouseX, int mouseY, float delta) {
super.render(graphics, mouseX, mouseY, delta);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ public Entry() {
}

@Override
public void render(@NotNull GuiGraphics context, int index, int y, int x,
public void render(@NotNull GuiGraphics graphics, int index, int y, int x,
int entryWidth, int entryHeight, int mouseX, int mouseY,
boolean hovered, float tickDelta) {
elements.forEach((button) -> {
button.setY(y);
button.render(context, mouseX, mouseY, tickDelta);
button.render(graphics, mouseX, mouseY, tickDelta);
});
}

Expand Down

0 comments on commit f086fa3

Please sign in to comment.