From 2978f17f3d01906d5a7e85bef8b8291ba5930138 Mon Sep 17 00:00:00 2001 From: D1p4k <82884007+D1p4k@users.noreply.github.com> Date: Thu, 19 Sep 2024 18:38:29 +0200 Subject: [PATCH] Fix Server Load/Unload being called on client --- .../java/org/ladysnake/cca/internal/chunk/CcaChunkClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cardinal-components-chunk/src/main/java/org/ladysnake/cca/internal/chunk/CcaChunkClient.java b/cardinal-components-chunk/src/main/java/org/ladysnake/cca/internal/chunk/CcaChunkClient.java index aef1b825..5e5745bd 100644 --- a/cardinal-components-chunk/src/main/java/org/ladysnake/cca/internal/chunk/CcaChunkClient.java +++ b/cardinal-components-chunk/src/main/java/org/ladysnake/cca/internal/chunk/CcaChunkClient.java @@ -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()); } } }