mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 09:07:29 +00:00
fixed config netcode for syncing lists
This commit is contained in:
1 file changed
+1
-1
+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 "
|
||||
|
||||
Reference in new issue
Block a user