From 4e40a526ae82c4396367bf3b8faeff6f7e75cd75 Mon Sep 17 00:00:00 2001 From: Patbox Date: Sun, 29 Oct 2023 18:43:30 +0100 Subject: [PATCH] Update to 1.20.2 --- build.gradle | 4 ++-- gradle.properties | 10 +++++----- src/main/java/xyz/nucleoid/leukocyte/Leukocyte.java | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 9e556a6..a5adfb4 100644 --- a/build.gradle +++ b/build.gradle @@ -25,9 +25,9 @@ dependencies { modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - modImplementation include('xyz.nucleoid:stimuli:0.4.6+1.20') + modImplementation include('xyz.nucleoid:stimuli:0.4.9+1.20.2') - modCompileOnly "dev.gegy:player-roles-api:1.6.5" + modCompileOnly "dev.gegy:player-roles-api:1.6.7" modCompileOnly "me.lucko:fabric-permissions-api:0.2-SNAPSHOT" } diff --git a/gradle.properties b/gradle.properties index 1277495..0746285 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,14 +1,14 @@ # Done to increase the memory available to gradle. org.gradle.jvmargs=-Xmx1G -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.1 +loader_version=0.14.22 #Dependencies -fabric_version=0.83.0+1.20 +fabric_version=0.89.0+1.20.2 # Mod Properties -mod_version=0.3.6 +mod_version=0.3.7 maven_group=xyz.nucleoid archives_base_name=leukocyte diff --git a/src/main/java/xyz/nucleoid/leukocyte/Leukocyte.java b/src/main/java/xyz/nucleoid/leukocyte/Leukocyte.java index 40c8214..4d698d5 100644 --- a/src/main/java/xyz/nucleoid/leukocyte/Leukocyte.java +++ b/src/main/java/xyz/nucleoid/leukocyte/Leukocyte.java @@ -26,6 +26,7 @@ public final class Leukocyte extends PersistentState { public static final String ID = "leukocyte"; private static final List RULE_ENFORCERS = new ArrayList<>(); + private static final Type TYPE = new Type<>(Leukocyte::new, Leukocyte::readNbt, null); private final IndexedAuthorityMap authorities = new IndexedAuthorityMap(); @@ -34,7 +35,7 @@ private Leukocyte() { public static Leukocyte get(MinecraftServer server) { var state = server.getOverworld().getPersistentStateManager(); - return state.getOrCreate(Leukocyte::readNbt, Leukocyte::new, ID); + return state.getOrCreate(TYPE, ID); } public static void registerRuleEnforcer(ProtectionRuleEnforcer enforcer) {