Skip to content

Commit

Permalink
Update check for existence of networking API, fixes #136
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Aug 27, 2022
1 parent b8ac44a commit 750df57
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public final class ComponentsWorldNetworking {
public static final Identifier PACKET_ID = new Identifier("cardinal-components", "world_sync");

public static void init() {
if (FabricLoader.getInstance().isModLoaded("fabric-networking-v0")) {
if (FabricLoader.getInstance().isModLoaded("fabric-networking-api-v1")) {
WorldSyncCallback.EVENT.register((player, world) -> {
ComponentProvider provider = (ComponentProvider) world;
for (ComponentKey<?> key : provider.getComponentContainer().keys()) {
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
------------------------------------------------------
Version 5.0.2
------------------------------------------------------
- Fix world components not synchronizing on load

------------------------------------------------------
Version 5.0.1
------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fabric_api_version=0.58.5+1.19.1
elmendorf_version=0.7.0

#Publishing
mod_version = 5.0.1
mod_version = 5.0.2
curseforge_id = 318449
modrinth_id = K01OU20C
curseforge_versions = 1.19
Expand Down

0 comments on commit 750df57

Please sign in to comment.