Skip to content

Commit

Permalink
Fix crash on server start due to MergeableCodecDataManager referring …
Browse files Browse the repository at this point in the history
…to missing ImmutableMap class
  • Loading branch information
Commoble committed Dec 7, 2022
1 parent 7bb92ae commit 5906a7c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 3.0.0.6
* Fix crash on server start due to MergeableCodecDataManager referring to missing ImmutableMap class

# 3.0.0.5
* Fix ConfigHelper#defineObject not working when the default value was an empty list

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

modid = databuddy
mod_version = 3.0.0.5
mod_version = 3.0.0.6
mc_version = 1.19.2
forge_version = 43.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ of this software and associated documentation files (the "Software"), to deal

import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
import com.ibm.icu.impl.locale.XCldrStub.ImmutableMap;
import com.mojang.serialization.Codec;
import com.mojang.serialization.JsonOps;

Expand Down Expand Up @@ -143,7 +142,7 @@ protected Map<ResourceLocation, FINE> prepare(final ResourceManager resourceMana
}

LOGGER.info("Data loader for {} loaded {} finalized objects", this.folderName, this.data.size());
return ImmutableMap.copyOf(map);
return Map.copyOf(map);
}

/** Main-thread processing, runs after prepare concludes **/
Expand Down

0 comments on commit 5906a7c

Please sign in to comment.