Skip to content

Commit

Permalink
fix: galaxy proxy should be C2S
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchen5209 committed Jun 9, 2024
1 parent 9af6812 commit deaa16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/one/oktw/galaxy/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Main : DedicatedServerModInitializer, CoroutineScope {
eventManager = EventManager(server)

// Register Proxy packet receiver
PayloadTypeRegistry.playS2C().register(ProxyAPIPayload.ID, ProxyAPIPayload.CODEC)
PayloadTypeRegistry.playC2S().register(ProxyAPIPayload.ID, ProxyAPIPayload.CODEC)
ServerPlayNetworking.registerGlobalReceiver(ProxyAPIPayload.ID) { payload, context ->
eventManager.emit(ProxyResponseEvent(context.player(), payload.packet))
}
Expand Down

0 comments on commit deaa16c

Please sign in to comment.