Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit da7d733

Browse files
committed
fix hopefully all remaining issues
1 parent 9000d12 commit da7d733

File tree

15 files changed

+36
-24
lines changed

15 files changed

+36
-24
lines changed

1.16.5/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/TeamUpgradesOverlay.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public void drawOverlay(MatrixStack stack, DrawPosition position, boolean editMo
111111
type.draw(stack, x, y, 16, 16);
112112
x+=17;
113113
}
114+
setWidth(Math.max((x - position.x()) + 1, 18));
114115
} else {
115116
upgrades.trap.draw(stack, x, y, 16, 16);
116117
setWidth(Math.max(((x + (upgrades.trap.getTrapCount()*16)) - position.x()) + 1, getWidth()));

1.16.5/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/upgrades/BedwarsTeamUpgrades.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public class BedwarsTeamUpgrades {
142142
}
143143
MinecraftClient.getInstance().getTextureManager().bindTexture(new Identifier("textures/block/furnace_front_on.png"));
144144
DrawableHelper.drawTexture(graphics, x, y, 0, 0, width, height, width, height);
145+
MinecraftClient.getInstance().textRenderer.drawWithShadow(graphics, String.valueOf(upgradeLevel), x+width-4, y+height-6, -1);
145146
}
146147
});
147148

1.16_combat-6/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/TeamUpgradesOverlay.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public void drawOverlay(MatrixStack stack, DrawPosition position, boolean editMo
110110
type.draw(stack, x, y, 16, 16);
111111
x+=17;
112112
}
113+
setWidth(Math.max((x - position.x()) + 1, 18));
113114
} else {
114115
upgrades.trap.draw(stack, x, y, 16, 16);
115116
setWidth(Math.max(((x + (upgrades.trap.getTrapCount()*16)) - position.x()) + 1, getWidth()));

1.16_combat-6/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/upgrades/BedwarsTeamUpgrades.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public class BedwarsTeamUpgrades {
142142
}
143143
MinecraftClient.getInstance().getTextureManager().bindTexture(new Identifier("textures/block/furnace_front_on.png"));
144144
DrawableHelper.drawTexture(graphics, x, y, 0, 0, width, height, width, height);
145+
MinecraftClient.getInstance().textRenderer.drawWithShadow(graphics, String.valueOf(upgradeLevel), x+width-4, y+height-6, -1);
145146
}
146147
});
147148

1.19.2/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/TeamUpgradesOverlay.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public void drawOverlay(MatrixStack stack, DrawPosition position, boolean editMo
106106
type.draw(stack, x, y, 16, 16);
107107
x+=17;
108108
}
109+
setWidth(Math.max((x - position.x()) + 1, 18));
109110
} else {
110111
upgrades.trap.draw(stack, x, y, 16, 16);
111112
setWidth(Math.max(((x + (upgrades.trap.getTrapCount()*16)) - position.x()) + 1, getWidth()));

1.19.2/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/upgrades/BedwarsTeamUpgrades.java

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,31 +78,29 @@ public class BedwarsTeamUpgrades {
7878
public final TeamUpgrade protection = new TieredUpgrade(
7979
"prot", Pattern.compile("^\\b[A-Za-z0-9_§]{3,16}\\b purchased Reinforced Armor .{1,3}\\s*$"),
8080
new int[]{5, 10, 20, 30}, new int[]{2, 4, 8, 16}, (graphics, x, y, width, height, upgradeLevel) -> {
81-
switch (upgradeLevel){
82-
case 1:
81+
switch (upgradeLevel) {
82+
case 1 -> {
8383
ItemUtil.renderGuiItemModel(BedwarsMod.getInstance().getUpgradesOverlay().getScale(), new ItemStack(Items.IRON_CHESTPLATE), x, y);
84-
DrawableHelper.enableScissor(x, y+height/2, x+width/2, y+height);
84+
DrawableHelper.enableScissor(x, y + height / 2, x + width / 2, y + height);
8585
ItemUtil.renderGuiItemModel(BedwarsMod.getInstance().getUpgradesOverlay().getScale(), new ItemStack(Items.DIAMOND_CHESTPLATE), x, y);
8686
DrawableHelper.disableScissor();
87-
break;
88-
case 2:
87+
}
88+
case 2 -> {
8989
ItemUtil.renderGuiItemModel(BedwarsMod.getInstance().getUpgradesOverlay().getScale(), new ItemStack(Items.IRON_CHESTPLATE), x, y);
90-
DrawableHelper.enableScissor(x, y, x+width/2, y+height);
90+
DrawableHelper.enableScissor(x, y, x + width / 2, y + height);
9191
ItemUtil.renderGuiItemModel(BedwarsMod.getInstance().getUpgradesOverlay().getScale(), new ItemStack(Items.DIAMOND_CHESTPLATE), x, y);
9292
DrawableHelper.disableScissor();
93-
break;
94-
case 3:
93+
}
94+
case 3 -> {
9595
ItemUtil.renderGuiItemModel(BedwarsMod.getInstance().getUpgradesOverlay().getScale(), new ItemStack(Items.DIAMOND_CHESTPLATE), x, y);
96-
DrawableHelper.enableScissor(x+width/2, y+height/2, x+width, y+height);
96+
DrawableHelper.enableScissor(x + width / 2, y + height / 2, x + width, y + height);
9797
ItemUtil.renderGuiItemModel(BedwarsMod.getInstance().getUpgradesOverlay().getScale(), new ItemStack(Items.IRON_CHESTPLATE), x, y);
9898
DrawableHelper.disableScissor();
99-
break;
100-
case 4:
99+
}
100+
case 4 ->
101101
ItemUtil.renderGuiItemModel(BedwarsMod.getInstance().getUpgradesOverlay().getScale(), new ItemStack(Items.DIAMOND_CHESTPLATE), x, y);
102-
break;
103-
default:
102+
default ->
104103
ItemUtil.renderGuiItemModel(BedwarsMod.getInstance().getUpgradesOverlay().getScale(), new ItemStack(Items.IRON_CHESTPLATE), x, y);
105-
break;
106104
}
107105
});
108106

@@ -140,6 +138,7 @@ public class BedwarsTeamUpgrades {
140138
}
141139
RenderSystem.setShaderTexture(0, new Identifier("textures/block/furnace_front_on.png"));
142140
DrawableHelper.drawTexture(graphics, x, y, 0, 0, width, height, width, height);
141+
MinecraftClient.getInstance().textRenderer.drawWithShadow(graphics, String.valueOf(upgradeLevel), x+width-4, y+height-6, -1);
143142
}
144143
});
145144

1.19.3/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/TeamUpgradesOverlay.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public void drawOverlay(MatrixStack stack, DrawPosition position, boolean editMo
106106
type.draw(stack, x, y, 16, 16);
107107
x+=17;
108108
}
109+
setWidth(Math.max((x - position.x()) + 1, 18));
109110
} else {
110111
upgrades.trap.draw(stack, x, y, 16, 16);
111112
setWidth(Math.max(((x + (upgrades.trap.getTrapCount()*16)) - position.x()) + 1, getWidth()));

1.19.3/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/upgrades/BedwarsTeamUpgrades.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public class BedwarsTeamUpgrades {
138138
}
139139
RenderSystem.setShaderTexture(0, new Identifier("textures/block/furnace_front_on.png"));
140140
DrawableHelper.drawTexture(graphics, x, y, 0, 0, width, height, width, height);
141+
MinecraftClient.getInstance().textRenderer.drawWithShadow(graphics, String.valueOf(upgradeLevel), x+width-4, y+height-6, -1);
141142
}
142143
});
143144

1.19.4/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/TeamUpgradesOverlay.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public void drawOverlay(MatrixStack stack, DrawPosition position, boolean editMo
106106
type.draw(stack, x, y, 16, 16);
107107
x+=17;
108108
}
109+
setWidth(Math.max((x - position.x()) + 1, 18));
109110
} else {
110111
upgrades.trap.draw(stack, x, y, 16, 16);
111112
setWidth(Math.max(((x + (upgrades.trap.getTrapCount()*16)) - position.x()) + 1, getWidth()));

1.19.4/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars/upgrades/BedwarsTeamUpgrades.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public class BedwarsTeamUpgrades {
137137
}
138138
RenderSystem.setShaderTexture(0, new Identifier("textures/block/furnace_front_on.png"));
139139
DrawableHelper.drawTexture(graphics, x, y, 0, 0, width, height, width, height);
140+
MinecraftClient.getInstance().textRenderer.drawWithShadow(graphics, String.valueOf(upgradeLevel), x+width-4, y+height-6, -1);
140141
}
141142
});
142143

0 commit comments

Comments
 (0)