diff --git a/src/main/java/dev/cammiescorner/arcanuscontinuum/common/packets/s2c/SyncConfigValuesPacket.java b/src/main/java/dev/cammiescorner/arcanuscontinuum/common/packets/s2c/SyncConfigValuesPacket.java index a305309..58b3ad8 100644 --- a/src/main/java/dev/cammiescorner/arcanuscontinuum/common/packets/s2c/SyncConfigValuesPacket.java +++ b/src/main/java/dev/cammiescorner/arcanuscontinuum/common/packets/s2c/SyncConfigValuesPacket.java @@ -8,6 +8,7 @@ import net.minecraft.network.PacketByteBuf; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.util.Identifier; +import org.quiltmc.loader.api.minecraft.ClientOnly; import org.quiltmc.qsl.networking.api.PacketByteBufs; import org.quiltmc.qsl.networking.api.PacketSender; import org.quiltmc.qsl.networking.api.ServerPlayNetworking; @@ -23,6 +24,7 @@ public static void send(ServerPlayerEntity player) { ServerPlayNetworking.send(player, ID, buf); } + @ClientOnly public static void handle(MinecraftClient client, ClientPlayNetworkHandler handler, PacketByteBuf buf, PacketSender sender) { boolean castingSpeedHasCoolDown = buf.readBoolean(); diff --git a/src/main/java/dev/cammiescorner/arcanuscontinuum/common/packets/s2c/SyncExplosionParticlesPacket.java b/src/main/java/dev/cammiescorner/arcanuscontinuum/common/packets/s2c/SyncExplosionParticlesPacket.java index f02fed5..8b7b476 100644 --- a/src/main/java/dev/cammiescorner/arcanuscontinuum/common/packets/s2c/SyncExplosionParticlesPacket.java +++ b/src/main/java/dev/cammiescorner/arcanuscontinuum/common/packets/s2c/SyncExplosionParticlesPacket.java @@ -10,6 +10,7 @@ import net.minecraft.util.Identifier; import net.minecraft.world.World; import org.quiltmc.loader.api.QuiltLoader; +import org.quiltmc.loader.api.minecraft.ClientOnly; import org.quiltmc.qsl.networking.api.PacketByteBufs; import org.quiltmc.qsl.networking.api.PacketSender; import org.quiltmc.qsl.networking.api.ServerPlayNetworking; @@ -29,6 +30,7 @@ public static void send(ServerPlayerEntity player, double x, double y, double z, ServerPlayNetworking.send(player, ID, buf); } + @ClientOnly public static void handle(MinecraftClient client, ClientPlayNetworkHandler handler, PacketByteBuf buf, PacketSender sender) { double x = buf.readDouble(); double y = buf.readDouble();