Fix libzontreck's packets not being functional

This commit is contained in:
zontreck 2024-04-23 23:29:50 -07:00
parent f039eb2abf
commit 965bea2982
2 changed files with 3 additions and 1 deletions

View file

@ -37,6 +37,8 @@ public class ModMessages {
.serverAcceptedVersions(s->true)
.simpleChannel();
INSTANCE=net;
net.messageBuilder(S2CPlaySoundPacket.class, PACKET_ID.getAndIncrement(), NetworkDirection.PLAY_TO_CLIENT)
.decoder(S2CPlaySoundPacket::new)