diff --git a/fabric/src/main/java/org/vivecraft/fabric/VivecraftMod.java b/fabric/src/main/java/org/vivecraft/fabric/VivecraftMod.java index 8ab7d497f..1e26c82d7 100644 --- a/fabric/src/main/java/org/vivecraft/fabric/VivecraftMod.java +++ b/fabric/src/main/java/org/vivecraft/fabric/VivecraftMod.java @@ -32,11 +32,11 @@ public void onInitialize() { // use channel registers to be compatible with other mod loaders if (FabricLoader.getInstance().getEnvironmentType() == EnvType.CLIENT) { ClientPlayNetworking.registerGlobalReceiver(VivecraftPayloadS2C.TYPE, - (payload, context) -> context.client().execute(() -> ClientNetworking.handlePacket(payload))); + (payload, context) -> ClientNetworking.handlePacket(payload)); } - ServerPlayNetworking.registerGlobalReceiver(VivecraftPayloadC2S.TYPE, (payload, context) -> context.server() - .execute( - () -> ServerNetworking.handlePacket(payload, context.player(), context.responseSender()::sendPacket))); + ServerPlayNetworking.registerGlobalReceiver(VivecraftPayloadC2S.TYPE, + (payload, context) -> ServerNetworking.handlePacket(payload, context.player(), + context.responseSender()::sendPacket)); } } diff --git a/gradle.properties b/gradle.properties index 786a07580..656356494 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ minecraft_version=1.21.3 enabled_platforms=fabric,forge,neoforge archives_base_name=vivecraft -mod_version=1.2.0 +mod_version=1.2.1 maven_group=org.vivecraft lwjgl_version=3.3.3