From 9e5d0e41340d16f88fc89c50fc96a1cfc6e5318b Mon Sep 17 00:00:00 2001 From: breelock Date: Thu, 29 Aug 2024 20:48:05 +0300 Subject: [PATCH] v1.2.1 for mc1.20.3-1.21.1 --- build.gradle | 6 +++--- gradle.properties | 6 +++--- .../java/com/breelock/autoclicky/pages/NewCombat.java | 8 ++++---- .../java/com/breelock/autoclicky/pages/OldCombat.java | 8 ++++---- src/main/resources/fabric.mod.json | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/build.gradle b/build.gradle index 4c83ad7..1889fa7 100644 --- a/build.gradle +++ b/build.gradle @@ -38,7 +38,7 @@ processResources { } tasks.withType(JavaCompile).configureEach { - it.options.release = 21 + it.options.release = 8 } java { @@ -47,8 +47,8 @@ java { // If you remove this line, sources will not be generated. withSourcesJar() - sourceCompatibility = JavaVersion.VERSION_21 - targetCompatibility = JavaVersion.VERSION_21 + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } jar { diff --git a/gradle.properties b/gradle.properties index 7ed9ed2..11e5de5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,8 +4,8 @@ org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.21 -yarn_mappings=1.21+build.9 +minecraft_version=1.20.3 +yarn_mappings=1.20.3+build.1 loader_version=0.16.3 # Mod Properties @@ -14,4 +14,4 @@ maven_group=com.breelock.autoclicky archives_base_name=autoclicky # Fabric API -fabric_version=0.102.0+1.21 \ No newline at end of file +fabric_version=0.91.1+1.20.3 \ No newline at end of file diff --git a/src/main/java/com/breelock/autoclicky/pages/NewCombat.java b/src/main/java/com/breelock/autoclicky/pages/NewCombat.java index 586f315..a19b4fb 100644 --- a/src/main/java/com/breelock/autoclicky/pages/NewCombat.java +++ b/src/main/java/com/breelock/autoclicky/pages/NewCombat.java @@ -85,19 +85,19 @@ protected void applyValue() { addDrawableChild(rightMaxDelaySlider); // First click is instant checkbox - interruptCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.interrupt"), this.textRenderer).pos(centerX + columnSpacing / 2, startY + 3 * spacing).maxWidth(checkboxWidth).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.interrupt.tooltip"))).checked(ModConfig.NewPvP.interrupt).build(); + interruptCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.interrupt"), this.textRenderer).pos(centerX + columnSpacing / 2, startY + 3 * spacing).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.interrupt.tooltip"))).checked(ModConfig.NewPvP.interrupt).build(); addDrawableChild(interruptCheckbox); // Show message checkbox - showMessageCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.messages"), this.textRenderer).pos(centerX - checkboxWidth - columnSpacing / 2, startY + 3 * spacing).maxWidth(checkboxWidth).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.messages.tooltip"))).checked(ModConfig.NewPvP.showMessage).build(); + showMessageCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.messages"), this.textRenderer).pos(centerX - checkboxWidth - columnSpacing / 2, startY + 3 * spacing).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.messages.tooltip"))).checked(ModConfig.NewPvP.showMessage).build(); addDrawableChild(showMessageCheckbox); // Auto jump checkbox - autoJumpCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.autoJump"), this.textRenderer).pos(centerX - checkboxWidth - columnSpacing / 2, startY + 4 * spacing).maxWidth(checkboxWidth).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.autoJump.tooltip"))).checked(ModConfig.NewPvP.autoJump).build(); + autoJumpCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.autoJump"), this.textRenderer).pos(centerX - checkboxWidth - columnSpacing / 2, startY + 4 * spacing).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.autoJump.tooltip"))).checked(ModConfig.NewPvP.autoJump).build(); addDrawableChild(autoJumpCheckbox); // Attack only when targeting an entity checkbox - onlyEntityCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.onlyEntity"), this.textRenderer).pos(centerX + columnSpacing / 2, startY + 4 * spacing).maxWidth(checkboxWidth).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.onlyEntity.tooltip"))).checked(ModConfig.NewPvP.onlyEntity).build(); + onlyEntityCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.onlyEntity"), this.textRenderer).pos(centerX + columnSpacing / 2, startY + 4 * spacing).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.onlyEntity.tooltip"))).checked(ModConfig.NewPvP.onlyEntity).build(); addDrawableChild(onlyEntityCheckbox); // Save button diff --git a/src/main/java/com/breelock/autoclicky/pages/OldCombat.java b/src/main/java/com/breelock/autoclicky/pages/OldCombat.java index dca6150..d1cc534 100644 --- a/src/main/java/com/breelock/autoclicky/pages/OldCombat.java +++ b/src/main/java/com/breelock/autoclicky/pages/OldCombat.java @@ -107,19 +107,19 @@ protected void applyValue() { addDrawableChild(rightMaxDelaySlider); // Interrupt the item use when left click - interruptCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.interrupt"), this.textRenderer).pos(centerX + columnSpacing / 2, startY + 3 * spacing).maxWidth(checkboxWidth).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.interrupt.tooltip"))).checked(ModConfig.OldPvP.interrupt).build(); + interruptCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.interrupt"), this.textRenderer).pos(centerX + columnSpacing / 2, startY + 3 * spacing).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.interrupt.tooltip"))).checked(ModConfig.OldPvP.interrupt).build(); addDrawableChild(interruptCheckbox); // Show message checkbox - showMessageCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.messages"), this.textRenderer).pos(centerX - checkboxWidth - columnSpacing / 2, startY + 3 * spacing).maxWidth(checkboxWidth).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.messages.tooltip"))).checked(ModConfig.OldPvP.showMessage).build(); + showMessageCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.messages"), this.textRenderer).pos(centerX - checkboxWidth - columnSpacing / 2, startY + 3 * spacing).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.messages.tooltip"))).checked(ModConfig.OldPvP.showMessage).build(); addDrawableChild(showMessageCheckbox); // Auto jump checkbox - autoJumpCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.autoJump"), this.textRenderer).pos(centerX - checkboxWidth - columnSpacing / 2, startY + 4 * spacing).maxWidth(checkboxWidth).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.autoJump.tooltip"))).checked(ModConfig.OldPvP.autoJump).build(); + autoJumpCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.autoJump"), this.textRenderer).pos(centerX - checkboxWidth - columnSpacing / 2, startY + 4 * spacing).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.autoJump.tooltip"))).checked(ModConfig.OldPvP.autoJump).build(); addDrawableChild(autoJumpCheckbox); // Attack only when targeting an entity checkbox - onlyEntityCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.onlyEntity"), this.textRenderer).pos(centerX + columnSpacing / 2, startY + 4 * spacing).maxWidth(checkboxWidth).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.onlyEntity.tooltip"))).checked(ModConfig.OldPvP.onlyEntity).build(); + onlyEntityCheckbox = CheckboxWidget.builder(Text.translatable("gui.autoclicky.onlyEntity"), this.textRenderer).pos(centerX + columnSpacing / 2, startY + 4 * spacing).tooltip(Tooltip.of(Text.translatable("gui.autoclicky.onlyEntity.tooltip"))).checked(ModConfig.OldPvP.onlyEntity).build(); addDrawableChild(onlyEntityCheckbox); // Save button diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index c2020a4..fc9560d 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -20,7 +20,7 @@ }, "depends": { "fabricloader": ">=0.15.11", - "minecraft": ">=1.21 <=1.21.1", + "minecraft": ">=1.20.3 <=1.21.1", "java": ">=8", "fabric": "*" },