Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack253-png committed Jun 23, 2024
1 parent 0d55778 commit 7710100
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import java.io.StringWriter

class AdvancedFrameworkClient : ClientModInitializer {
override fun onInitializeClient() {
PayloadTypeRegistry.playS2C().register(UpdatePacket.TYPE, UpdatePacket.CODEC)
PayloadTypeRegistry.playS2C().register(TestEntityAddPacket.TYPE, TestEntityAddPacket.CODEC)
ClientPlayNetworking.registerGlobalReceiver(UpdatePacket.TYPE, UpdatePacket.Handler)
ClientPlayNetworking.registerGlobalReceiver(TestEntityAddPacket.TYPE, TestEntityAddPacket.Handler)
ClientCommandRegistrationCallback.EVENT.register { dis, _ ->
Expand Down Expand Up @@ -86,8 +88,6 @@ class AdvancedFrameworkClient : ClientModInitializer {
)
}
SabaNative.init()
PayloadTypeRegistry.playS2C().register(UpdatePacket.TYPE, UpdatePacket.CODEC)
PayloadTypeRegistry.playS2C().register(TestEntityAddPacket.TYPE, TestEntityAddPacket.CODEC)
}
}

Expand Down

0 comments on commit 7710100

Please sign in to comment.