Changes
From Forge Community Wiki
10 bytes added
, 21:21, 28 August 2023
mLine 63: |
Line 63: |
| .encoder(MessagePacket::encoder) | | .encoder(MessagePacket::encoder) |
| .decoder(MessagePacket::decoder) | | .decoder(MessagePacket::decoder) |
− | .consumerMainThread(MessagePacket::messageConsumer); | + | .consumerMainThread(MessagePacket::messageConsumer) |
| + | .add(); |
| // You can use consumerMainThread or consumerNetworkThread. | | // You can use consumerMainThread or consumerNetworkThread. |
| // If you use consumerMainThread, the builder will take care of the enqueueWork and setPacketHandled. | | // If you use consumerMainThread, the builder will take care of the enqueueWork and setPacketHandled. |