Skip to content

Commit

Permalink
Update to 1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Oct 29, 2023
1 parent f205f3b commit 4e40a52
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion src/main/java/xyz/nucleoid/leukocyte/Leukocyte.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public final class Leukocyte extends PersistentState {
public static final String ID = "leukocyte";

private static final List<ProtectionRuleEnforcer> RULE_ENFORCERS = new ArrayList<>();
private static final Type<Leukocyte> TYPE = new Type<>(Leukocyte::new, Leukocyte::readNbt, null);

private final IndexedAuthorityMap authorities = new IndexedAuthorityMap();

Expand All @@ -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) {
Expand Down

0 comments on commit 4e40a52

Please sign in to comment.