Skip to content

Commit 8ca9bcf

Browse files
feat: port to 1.21.6
1 parent 22272aa commit 8ca9bcf

File tree

6 files changed

+21
-15
lines changed

6 files changed

+21
-15
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [21.6.0]
2+
3+
### Changed
4+
5+
- Updated to 1.21.6
6+
17
## [21.5.0]
28

39
### Changed

common/src/main/java/pro/mikey/autoclicker/AutoClicker.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,21 @@ public void renderGameOverlayEvent(GuiGraphics context, DeltaTracker delta) {
125125
Component text = Language.HUD_HOLDING.getText(I18n.get(leftHolding.getKey().getName()));
126126
int y = getHudY() + (15 * 0);
127127
int x = getHudX(text);
128-
context.drawString(client.font, text.getVisualOrderText(), x, y, 0xffffff);
128+
context.drawString(client.font, text.getVisualOrderText(), x, y, 0xFFffffff);
129129
}
130130

131131
if (rightHolding.isActive()) {
132132
Component text = Language.HUD_HOLDING.getText(I18n.get(rightHolding.getKey().getName()));
133133
int y = getHudY() + (15 * 1);
134134
int x = getHudX(text);
135-
context.drawString(client.font, text.getVisualOrderText(), x, y, 0xffffff);
135+
context.drawString(client.font, text.getVisualOrderText(), x, y, 0xFFffffff);
136136
}
137137

138138
if (jumpHolding.isActive()) {
139139
Component text = Language.HUD_HOLDING.getText(I18n.get(jumpHolding.getKey().getName()));
140140
int y = getHudY() + (15 * 2);
141141
int x = getHudX(text);
142-
context.drawString(client.font, text.getVisualOrderText(), x, y, 0xffffff);
142+
context.drawString(client.font, text.getVisualOrderText(), x, y, 0xFFffffff);
143143
}
144144
}
145145

common/src/main/java/pro/mikey/autoclicker/OptionsScreen.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import net.minecraft.client.gui.components.Button;
66
import net.minecraft.client.gui.components.EditBox;
77
import net.minecraft.client.gui.screens.Screen;
8+
import net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent;
89
import net.minecraft.client.gui.screens.inventory.tooltip.DefaultTooltipPositioner;
910
import net.minecraft.network.chat.Component;
1011
import net.minecraft.network.chat.FormattedText;
@@ -237,22 +238,21 @@ private String getNextLocation(String currentLocation){
237238

238239
private void renderHelpingTip(GuiGraphics context, Component text, int mouseX, int mouseY) {
239240
context.renderTooltip(
240-
this.font, this.font.split(FormattedText.of(text.getString()), 250), DefaultTooltipPositioner.INSTANCE, mouseX, mouseY);
241+
this.font, this.font.split(FormattedText.of(text.getString()), 250).stream().map(ClientTooltipComponent::create).toList(), mouseX, mouseY, DefaultTooltipPositioner.INSTANCE, null);
241242
}
242243

243244
@Override
244245
public void render(GuiGraphics context, int mouseX, int mouseY, float delta) {
245-
this.renderBackground(context, mouseX, mouseY, delta);
246246
super.render(context, mouseX, mouseY, delta);
247247

248248
context.drawString(
249-
this.font,Language.GUI_ATTACK.getText().getVisualOrderText(), this.width / 2 - 200, this.height / 2 - 116, 0xFFFFFF);
249+
this.font,Language.GUI_ATTACK.getText().getVisualOrderText(), this.width / 2 - 200, this.height / 2 - 116, 0xFFFFFFFF);
250250

251251
context.drawString(
252-
this.font, Language.GUI_USE.getText().getVisualOrderText(), this.width / 2 - 65, this.height / 2 - 116, 0xFFFFFF);
252+
this.font, Language.GUI_USE.getText().getVisualOrderText(), this.width / 2 - 65, this.height / 2 - 116, 0xFFFFFFFF);
253253

254254
context.drawString(
255-
this.font, Language.GUI_JUMP.getText().getVisualOrderText(), this.width / 2 + 70, this.height / 2 - 116, 0xFFFFFF);
255+
this.font, Language.GUI_JUMP.getText().getVisualOrderText(), this.width / 2 + 70, this.height / 2 - 116, 0xFFFFFFFF);
256256

257257
for (Button button : buttonTooltips.keySet()) {
258258
if (button.isHovered()) {

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ org.gradle.jvmargs=-Xmx2G
33
org.gradle.parallel=true
44

55
# Mod properties
6-
mod_version = 21.5.0
6+
mod_version = 21.6.0
77
maven_group = pro.mikey.autoclicker
88
archives_name = autoclicker
99
enabled_platforms = fabric,neoforge
1010

1111
# Minecraft properties
12-
minecraft_version = 1.21.5
12+
minecraft_version = 1.21.6
1313

1414
# Dependencies
1515
fabric_loader_version=0.16.14
16-
fabric_api_version=0.124.0+1.21.5
17-
neoforge_version = 21.5.35-beta
16+
fabric_api_version=0.128.1+1.21.6
17+
neoforge_version = 21.6.20-beta
1818

19-
modmenu = 14.0.0-rc.2
19+
modmenu = 15.0.0-beta.3
2020

2121
curseforge_id=445095
2222
modrinth_id=r8axuw4u

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

neoforge/src/main/java/pro/mikey/autoclicker/neoforge/AutoClickerNeoForge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import pro.mikey.autoclicker.AutoClicker;
2121

2222
@Mod(AutoClicker.MOD_ID)
23-
@EventBusSubscriber(value = Dist.CLIENT, modid = AutoClicker.MOD_ID, bus = EventBusSubscriber.Bus.MOD)
23+
@EventBusSubscriber(value = Dist.CLIENT, modid = AutoClicker.MOD_ID)
2424
public final class AutoClickerNeoForge {
2525
private static final AutoClicker autoClicker = new AutoClicker();
2626
public AutoClickerNeoForge() {

0 commit comments

Comments
 (0)