Misc fog improvements

This commit is contained in:
Anuken
2022-03-01 10:24:20 -05:00
parent 8b51ba17ec
commit 97cbc3d345
23 changed files with 214 additions and 45 deletions
+2 -2
View File
@@ -312,8 +312,8 @@ public class TypeIO{
/** @return the maximum acceptable amount of plans to send over the network */
public static int getMaxPlans(Queue<BuildPlan> plans){
//limit to 10 to prevent buffer overflows
int used = Math.min(plans.size, 10);
//limit to prevent buffer overflows
int used = Math.min(plans.size, 15);
int totalLength = 0;
//prevent buffer overflow by checking config length