Skip to content

Commit

Permalink
Update mod to Minecraft 1.20.2 (#22)
Browse files Browse the repository at this point in the history
* Update mod to Minecraft 1.20.2

* Update Polymer to version 0.6.0
  • Loading branch information
haykam821 authored Sep 26, 2023
1 parent 2842bc2 commit 0a13ffd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ dependencies {

modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modImplementation include('eu.pb4:polymer-core:0.5.6+1.20.1')
modImplementation include('xyz.nucleoid:server-translations-api:2.0.0+1.20')
modImplementation include('eu.pb4:polymer-core:0.6.0+1.20.2')
modImplementation include('xyz.nucleoid:server-translations-api:2.1.0+1.20.2-rc2')
modImplementation include('xyz.nucleoid:fantasy:0.4.11+1.20-rc1')
modImplementation(include('me.lucko:fabric-permissions-api:0.2-SNAPSHOT'))

Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G

minecraft_version=1.20.1
yarn_mappings=1.20.1+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.1+1.20.2

# Mod Properties
mod_version=0.2.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ private MapWorkspaceManager(MinecraftServer server) {
}

public static MapWorkspaceManager get(MinecraftServer server) {
return server.getOverworld().getPersistentStateManager().getOrCreate(
nbt -> MapWorkspaceManager.readNbt(server, nbt),
var type = new PersistentState.Type<>(
() -> new MapWorkspaceManager(server),
nbt -> MapWorkspaceManager.readNbt(server, nbt),
null
);

return server.getOverworld().getPersistentStateManager().getOrCreate(
type,
KEY
);
}
Expand Down

0 comments on commit 0a13ffd

Please sign in to comment.