From 720660136a6423ec22bfe0bfe0fe15792eb9f44a Mon Sep 17 00:00:00 2001 From: FirstMegaGame4 Date: Wed, 6 Dec 2023 16:51:14 +0100 Subject: [PATCH] Make NetworkSupport#writeCompleteAsNullable Static --- .../mmodding_lib/library/network/support/NetworkSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/mmodding/mmodding_lib/library/network/support/NetworkSupport.java b/src/main/java/com/mmodding/mmodding_lib/library/network/support/NetworkSupport.java index db2c3fc..e49bb65 100644 --- a/src/main/java/com/mmodding/mmodding_lib/library/network/support/NetworkSupport.java +++ b/src/main/java/com/mmodding/mmodding_lib/library/network/support/NetworkSupport.java @@ -46,8 +46,8 @@ static 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 void writeCompleteAsNullable(T value, PacketByteBuf buf) { + buf.writeNullable(value, (current, support) -> support.writeComplete(buf)); } default void writeComplete(PacketByteBuf buf) {