Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/Multiloader-1.21.4' into…
Browse files Browse the repository at this point in the history
… Multiloader-1.21.3
  • Loading branch information
fayer3 committed Jan 7, 2025
2 parents bd1de01 + 25d24dd commit aeb7578
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions fabric/src/main/java/org/vivecraft/fabric/VivecraftMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aeb7578

Please sign in to comment.