Skip to content

Commit 5699536

Browse files
committed
[CI SKIP] Add some notes about the known caveat of multi protocol definitions
1 parent a945100 commit 5699536

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

networking-fabric/src/main/java/wtf/choco/network/fabric/RawDataPayload.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ public final class RawDataPayload implements CustomPacketPayload {
2020

2121
private static CustomPacketPayload.Type<RawDataPayload> type;
2222

23+
/*
24+
* NOTE: This doesn't support more than one MessageProtocol definition.
25+
* VeinMiner only uses one definition. If any one else uses more than one definition, please try to make this better!
26+
* Probably a Map<NamespacedKey, CustomPacketPayload.Type<RawDataPayload>>? But it would have to pull that key from SOMEWHERE. I don't know...
27+
*/
2328
@ApiStatus.Internal
2429
static void setType(@NotNull CustomPacketPayload.Type<RawDataPayload> type) {
2530
RawDataPayload.type = type;

0 commit comments

Comments
 (0)