Skip to content

Commit 886ca5f

Browse files
committed
fixed config netcode for syncing lists
1 parent 8d1f102 commit 886ca5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/falsepattern/lib/internal/impl/config/fields/AListConfigField.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void transmit(DataOutput output) throws IOException {
123123
@Override
124124
public void receive(DataInput input) throws IOException {
125125
int length = input.readInt();
126-
if (length > maxLength || fixedLength && length(getDefault()) != length) {
126+
if ((fixedLength && length(getDefault()) != length) || (maxLength >= 0 && length > maxLength) || length < 0) {
127127
throw new IOException("Error while retrieving config value for field "
128128
+ field.getName()
129129
+ " in class "

0 commit comments

Comments
 (0)