mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +03:00
Increased max rule byte size
This commit is contained in:
@@ -820,7 +820,7 @@ public class TypeIO{
|
||||
public static Rules readRules(Reads read){
|
||||
int length = read.i();
|
||||
//this is only called clientside, but the byte limit is reasonable either way...
|
||||
if(length > maxByteArraySize) throw new ArcRuntimeException("Rules too long");
|
||||
if(length > 100_000) throw new ArcRuntimeException("Rules too long");
|
||||
String string = new String(read.b(new byte[length]), charset);
|
||||
return JsonIO.read(Rules.class, string);
|
||||
}
|
||||
|
||||
+1
-1
@@ -26,4 +26,4 @@ org.gradle.caching=true
|
||||
org.gradle.internal.http.socketTimeout=100000
|
||||
org.gradle.internal.http.connectionTimeout=100000
|
||||
android.enableR8.fullMode=false
|
||||
archash=dfb09c1ce2
|
||||
archash=b1b048e64f
|
||||
|
||||
Reference in New Issue
Block a user