Skip to content

Commit

Permalink
fixed config netcode for syncing lists
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern committed Dec 27, 2024
1 parent 8d1f102 commit 886ca5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void transmit(DataOutput output) throws IOException {
@Override
public void receive(DataInput input) throws IOException {
int length = input.readInt();
if (length > maxLength || fixedLength && length(getDefault()) != length) {
if ((fixedLength && length(getDefault()) != length) || (maxLength >= 0 && length > maxLength) || length < 0) {
throw new IOException("Error while retrieving config value for field "
+ field.getName()
+ " in class "
Expand Down

0 comments on commit 886ca5f

Please # to comment.