Skip to content

Commit

Permalink
Fix neoforge Velocity support (IzzelAliz#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed Nov 3, 2024
1 parent a9ea988 commit 9e4c7c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private static void readResponse(int id, FriendlyByteBuf buf, CallbackInfoReturn
if (i >= 0 && i < MAX_PAYLOAD_SIZE) {
var payload = Unpooled.buffer(i);
buf.readBytes(payload);
cir.setReturnValue(new ArclightCustomQueryAnswerPayload(payload));
cir.setReturnValue(new ArclightCustomQueryAnswerPayload(Unpooled.wrappedBuffer(Unpooled.copyBoolean(true), payload)));
} else {
throw new IllegalArgumentException("Payload may not be larger than 1048576 bytes");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private static void readResponse(int id, FriendlyByteBuf buf, CallbackInfoReturn
if (i >= 0 && i < MAX_PAYLOAD_SIZE) {
var payload = Unpooled.buffer(i);
buf.readBytes(payload);
cir.setReturnValue(new ArclightCustomQueryAnswerPayload(payload));
cir.setReturnValue(new ArclightCustomQueryAnswerPayload(Unpooled.wrappedBuffer(Unpooled.copyBoolean(true), payload)));
} else {
throw new IllegalArgumentException("Payload may not be larger than 1048576 bytes");
}
Expand Down

0 comments on commit 9e4c7c7

Please sign in to comment.