Skip to content

Commit

Permalink
Make NetworkSupport#writeCompleteAsNullable Static
Browse files Browse the repository at this point in the history
  • Loading branch information
FirstMegaGame4 committed Dec 6, 2023
1 parent 0461351 commit 7206601
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ static <T extends NetworkSupport> T readComplete(PacketByteBuf buf) {
throw new IllegalArgumentException("Identifier is not present in the NetworkSupport Registry");
}

default void writeCompleteAsNullable(PacketByteBuf buf) {
buf.writeNullable(this, (current, support) -> support.writeComplete(buf));
static <T extends NetworkSupport> void writeCompleteAsNullable(T value, PacketByteBuf buf) {
buf.writeNullable(value, (current, support) -> support.writeComplete(buf));
}

default void writeComplete(PacketByteBuf buf) {
Expand Down

0 comments on commit 7206601

Please sign in to comment.