diff --git a/build.gradle b/build.gradle index 8551313..96437b8 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'fabric-loom' version '1.0-SNAPSHOT' + id 'fabric-loom' version '1.3-SNAPSHOT' id 'maven-publish' } diff --git a/gradle.properties b/gradle.properties index ed4b87c..536697b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,23 +1,17 @@ # Done to increase the memory available to gradle. org.gradle.jvmargs=-Xmx1G -# Fabric Properties - # check these on https://fabricmc.net/use - minecraft_version=1.19.2 - yarn_mappings=1.19.2+build.8 - loader_version=0.14.9 +mod_version = 1.20.1-1.4.1 +maven_group = me.neophyte.mods.savecoords +archives_base_name = save-coordinates -# Mod Properties - mod_version = 1.19.2-1.3.1 - maven_group = me.neophyte.mods.savecoords - archives_base_name = save-coordinates +minecraft_version=1.20.1 +yarn_mappings=1.20.1+build.9 +loader_version=0.14.21 -# Dependencies - # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api - fabric_version=0.60.0+1.19.2 - - # https://github.com/CottonMC/LibGui/wiki/Setup - libgui_version=6.3.0+1.19 - - # https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu/ - modmenu_version=4.1.0 +# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api +fabric_version=0.85.0+1.20.1 +# https://github.com/CottonMC/LibGui/wiki/Setup +libgui_version=8.0.1+1.20 +# https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu/ +modmenu_version=7.1.0 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 84d1f85..59bc51a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/src/main/java/me/neophyte/mods/savecoords/gui/impl/PingPositionOperation.java b/src/main/java/me/neophyte/mods/savecoords/gui/impl/PingPositionOperation.java index 13ceeab..d44b4eb 100644 --- a/src/main/java/me/neophyte/mods/savecoords/gui/impl/PingPositionOperation.java +++ b/src/main/java/me/neophyte/mods/savecoords/gui/impl/PingPositionOperation.java @@ -16,6 +16,6 @@ class PingPositionOperation extends ViewOperationBase { @SuppressWarnings("resource") @Override protected void executeOperation(IFileStore fileStore, PlayerRawPosition position) throws Exception { - MinecraftClient.getInstance().player.sendChatMessage(position.toString(), Text.of(position.toString())); + MinecraftClient.getInstance().player.sendMessage(Text.of(position.toString())); } } diff --git a/src/main/java/me/neophyte/mods/savecoords/gui/impl/TexturedButton.java b/src/main/java/me/neophyte/mods/savecoords/gui/impl/TexturedButton.java index ff02b55..2f1d46e 100644 --- a/src/main/java/me/neophyte/mods/savecoords/gui/impl/TexturedButton.java +++ b/src/main/java/me/neophyte/mods/savecoords/gui/impl/TexturedButton.java @@ -3,6 +3,7 @@ package me.neophyte.mods.savecoords.gui.impl; import io.github.cottonmc.cotton.gui.client.ScreenDrawing; import io.github.cottonmc.cotton.gui.widget.WButton; import io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment; +import net.minecraft.client.gui.DrawContext; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.text.Text; import net.minecraft.util.Identifier; @@ -20,7 +21,7 @@ public class TexturedButton extends WButton { } @Override - public void paint(MatrixStack matrices, int x, int y, int mouseX, int mouseY) { + public void paint(DrawContext matrices, int x, int y, int mouseX, int mouseY) { super.paint(matrices, x, y, mouseX, mouseY); if (texture != null) { diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 0ae1476..bd81086 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -10,7 +10,7 @@ "contact": { "homepage": "https://github.com/cool-mist/SaveCoordinates", "sources": "https://github.com/cool-mist/SaveCoordinates", - "issues" : "https://github.com/cool-mist/SaveCoordinates/issues" + "issues": "https://github.com/cool-mist/SaveCoordinates/issues" }, "license": "LGPLv3", "icon": "assets/savecoords/icon.png", @@ -27,10 +27,10 @@ "depends": { "fabricloader": ">=0.14.9", "fabric": "*", - "minecraft": "1.19.x", + "minecraft": "1.20.x", "java": ">=17" }, "suggests": { "another-mod": "modmenu" } -} \ No newline at end of file +}