Skip to content

Commit

Permalink
revert GuiStatButton
Browse files Browse the repository at this point in the history
  • Loading branch information
LasmGratel committed Jan 5, 2022
1 parent 53fe8a3 commit b3ff0b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
run: ./gradlew clean build
- uses: Kir-Antipov/[email protected]
with:
modrinth-id: gokistats
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

curseforge-id: 298141
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
files-primary: build/libs/!(*-@(dev|sources)).jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.lwjgl.opengl.GL11;

public class GuiStatButton extends Button {
public StatBase<?> stat;
public StatBase stat;
public PlayerEntity player;

public static final int INACTIVE_X = 0;
Expand All @@ -24,16 +24,15 @@ public class GuiStatButton extends Button {
public final int id;
private final Minecraft mc = Minecraft.getInstance();

public GuiStatButton(int id, int x, int y, int width, int height, StatBase<?> stat, PlayerEntity player, IPressable onPress) {
public GuiStatButton(int id, int x, int y, int width, int height, StatBase stat, PlayerEntity player, IPressable onPress) {
super(x, y, width, height, StringTextComponent.EMPTY, onPress);
this.id = id;
this.stat = stat;
this.player = player;
}

@Override
public void renderButton(@Nonnull MatrixStack stack, int mouseX, int mouseY, float partialTicks) {

public void renderButton(MatrixStack stack, int mouseX, int mouseY, float partialTicks) {
if (this.visible) {
int iconY = 24 * (this.stat.imageID % 10);
int level = DataHelper.getPlayerStatLevel(this.player, this.stat);
Expand Down

0 comments on commit b3ff0b4

Please sign in to comment.