From 65042fe0d6cb5efca98a2fa98bd95240c167a6aa Mon Sep 17 00:00:00 2001 From: ArnoKeesmand Date: Mon, 9 Oct 2023 20:18:52 +0200 Subject: [PATCH 1/2] update to 1.20.2 --- build.gradle | 1 + gradle.properties | 14 +++++++------- .../java/us/potatoboy/invview/ViewCommand.java | 5 +++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 7e28090..b55fff9 100644 --- a/build.gradle +++ b/build.gradle @@ -25,6 +25,7 @@ repositories { mavenCentral() maven { url 'https://api.modrinth.com/maven' } maven { url 'https://jitpack.io' } + maven { url 'https://maven.quiltmc.org/repository/release' } } sourceCompatibility = JavaVersion.VERSION_17 diff --git a/gradle.properties b/gradle.properties index 917b441..d502182 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,16 +2,16 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/develop/ -minecraft_version=1.20 -yarn_mappings=1.20+build.1 -loader_version=0.14.21 +minecraft_version=1.20.2 +yarn_mappings=1.20.2+build.4 +loader_version=0.14.22 # Mod Properties mod_version=1.4.12 maven_group=us.potatoboy archives_base_name=InvView # Dependencies # check this on https://fabricmc.net/develop/ -fabric_version=0.83.0+1.20 -trinkets_version=3.7.0 -apoli_version=2.9.0 -sgui_version=1.2.2+1.20 +fabric_version=0.90.0+1.20.2 +trinkets_version=3.8.0 +apoli_version=2.10.1 +sgui_version=1.3.0+1.20.2 diff --git a/src/main/java/us/potatoboy/invview/ViewCommand.java b/src/main/java/us/potatoboy/invview/ViewCommand.java index 6a969f8..855d7e2 100644 --- a/src/main/java/us/potatoboy/invview/ViewCommand.java +++ b/src/main/java/us/potatoboy/invview/ViewCommand.java @@ -17,6 +17,7 @@ import net.minecraft.item.Items; import net.minecraft.nbt.NbtCompound; import net.minecraft.nbt.NbtOps; +import net.minecraft.network.packet.c2s.common.SyncedClientOptions; import net.minecraft.screen.ScreenHandlerType; import net.minecraft.screen.slot.Slot; import net.minecraft.server.MinecraftServer; @@ -33,7 +34,7 @@ import java.util.Map; public class ViewCommand { - private static MinecraftServer minecraftServer = InvView.getMinecraftServer(); + private static final MinecraftServer minecraftServer = InvView.getMinecraftServer(); private static final String permProtected = "invview.protected"; private static final String permModify = "invview.can_modify"; @@ -167,7 +168,7 @@ private static ServerPlayerEntity getRequestedPlayer(CommandContext Date: Mon, 9 Oct 2023 15:58:47 -0700 Subject: [PATCH 2/2] Update gradle.properties --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index d502182..89e0aa3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ minecraft_version=1.20.2 yarn_mappings=1.20.2+build.4 loader_version=0.14.22 # Mod Properties -mod_version=1.4.12 +mod_version=1.4.13 maven_group=us.potatoboy archives_base_name=InvView # Dependencies