Skip to content

Commit

Permalink
[CI SKIP] Add some notes about the known caveat of multi protocol def…
Browse files Browse the repository at this point in the history
…initions
  • Loading branch information
2008Choco committed May 8, 2024
1 parent a945100 commit 5699536
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public final class RawDataPayload implements CustomPacketPayload {

private static CustomPacketPayload.Type<RawDataPayload> type;

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

0 comments on commit 5699536

Please sign in to comment.