fixed config netcode for syncing lists

This commit is contained in:
FalsePattern committed 2024-12-28 00:37:43 +01:00
1 parent 8d1f10275d
commit 886ca5f53e
1 file changed
+1 -1
@@ -123,7 +123,7 @@ public abstract class AListConfigField<T, E extends Annotation> extends AConfigF
@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 "