Migrate to 1.20.1
This commit is contained in:
parent
6138a77cd2
commit
6de4a49d20
@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'fabric-loom' version '1.0-SNAPSHOT'
|
id 'fabric-loom' version '1.3-SNAPSHOT'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,23 +1,17 @@
|
|||||||
# Done to increase the memory available to gradle.
|
# Done to increase the memory available to gradle.
|
||||||
org.gradle.jvmargs=-Xmx1G
|
org.gradle.jvmargs=-Xmx1G
|
||||||
|
|
||||||
# Fabric Properties
|
mod_version = 1.20.1-1.4.1
|
||||||
# check these on https://fabricmc.net/use
|
maven_group = me.neophyte.mods.savecoords
|
||||||
minecraft_version=1.19.2
|
archives_base_name = save-coordinates
|
||||||
yarn_mappings=1.19.2+build.8
|
|
||||||
loader_version=0.14.9
|
|
||||||
|
|
||||||
# Mod Properties
|
minecraft_version=1.20.1
|
||||||
mod_version = 1.19.2-1.3.1
|
yarn_mappings=1.20.1+build.9
|
||||||
maven_group = me.neophyte.mods.savecoords
|
loader_version=0.14.21
|
||||||
archives_base_name = save-coordinates
|
|
||||||
|
|
||||||
# Dependencies
|
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
|
||||||
# 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
|
||||||
fabric_version=0.60.0+1.19.2
|
# https://github.com/CottonMC/LibGui/wiki/Setup
|
||||||
|
libgui_version=8.0.1+1.20
|
||||||
# https://github.com/CottonMC/LibGui/wiki/Setup
|
# https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu/
|
||||||
libgui_version=6.3.0+1.19
|
modmenu_version=7.1.0
|
||||||
|
|
||||||
# https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu/
|
|
||||||
modmenu_version=4.1.0
|
|
||||||
|
|||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
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
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@ -16,6 +16,6 @@ class PingPositionOperation extends ViewOperationBase<PlayerRawPosition> {
|
|||||||
@SuppressWarnings("resource")
|
@SuppressWarnings("resource")
|
||||||
@Override
|
@Override
|
||||||
protected void executeOperation(IFileStore fileStore, PlayerRawPosition position) throws Exception {
|
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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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.client.ScreenDrawing;
|
||||||
import io.github.cottonmc.cotton.gui.widget.WButton;
|
import io.github.cottonmc.cotton.gui.widget.WButton;
|
||||||
import io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment;
|
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.client.util.math.MatrixStack;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
@ -20,7 +21,7 @@ public class TexturedButton extends WButton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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);
|
super.paint(matrices, x, y, mouseX, mouseY);
|
||||||
|
|
||||||
if (texture != null) {
|
if (texture != null) {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
"contact": {
|
"contact": {
|
||||||
"homepage": "https://github.com/cool-mist/SaveCoordinates",
|
"homepage": "https://github.com/cool-mist/SaveCoordinates",
|
||||||
"sources": "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",
|
"license": "LGPLv3",
|
||||||
"icon": "assets/savecoords/icon.png",
|
"icon": "assets/savecoords/icon.png",
|
||||||
@ -27,7 +27,7 @@
|
|||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.14.9",
|
"fabricloader": ">=0.14.9",
|
||||||
"fabric": "*",
|
"fabric": "*",
|
||||||
"minecraft": "1.19.x",
|
"minecraft": "1.20.x",
|
||||||
"java": ">=17"
|
"java": ">=17"
|
||||||
},
|
},
|
||||||
"suggests": {
|
"suggests": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user