Skip to content

Commit

Permalink
Fix Server Load/Unload being called on client
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev0Louis committed Sep 19, 2024
1 parent 9a00d11 commit 2978f17
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 2978f17

Please sign in to comment.