Skip to content

Commit

Permalink
Merge pull request #183 from Dev0Louis/1.21
Browse files Browse the repository at this point in the history
Fix Server Load/Unload being called on client
  • Loading branch information
Pyrofab authored Oct 24, 2024
2 parents 9a00d11 + 2978f17 commit c787e5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public static void initClient() {
));
}
if (FabricLoader.getInstance().isModLoaded("fabric-lifecycle-events-v1")) {
ClientChunkEvents.CHUNK_LOAD.register((world, chunk) -> ((ComponentProvider) chunk).getComponentContainer().onServerLoad());
ClientChunkEvents.CHUNK_UNLOAD.register((world, chunk) -> ((ComponentProvider) chunk).getComponentContainer().onServerUnload());
ClientChunkEvents.CHUNK_LOAD.register((world, chunk) -> ((ComponentProvider) chunk).getComponentContainer().onClientLoad());
ClientChunkEvents.CHUNK_UNLOAD.register((world, chunk) -> ((ComponentProvider) chunk).getComponentContainer().onClientUnload());
}
}
}

0 comments on commit c787e5b

Please sign in to comment.