You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
comment.write("\n# 'pre_render_radius' = how many chunks are loaded until 'building terrain' is completed.");
61
-
comment.write("\n# Keep in mind that for safety reasons, pre-rendering may not always fully complete");
54
+
comment.write("\n# 'pre_render_radius' = how many chunks are loaded until 'building terrain' is completed. Adjusts with FOV to decide how many chunks are visible");
62
55
comment.write("\n# Min = 0, Max = 32 or your render distance, Whichever is smaller. Set 0 to disable. Must be a positive Integer");
63
56
comment.write("\n#");
64
57
comment.write("\n# 'pregen_chunk_radius' = how many chunks (from 441 Loading) are pre-generated until the server starts");
if (oldPreparationWarningCache == preparationWarnings && preparationWarnings > spamLimit) {
278
-
log("FL_WARN# Same prepared chunk count returned " + preparationWarnings + " time(s) in a row! Had it be " + chunkTryLimit + " time(s) in a row, chunk preparation would've stopped");
279
-
if (debug) logPreRendering(chunkLoadedCount);
280
-
}
281
-
if (chunkLoadedCount > oldChunkLoadedCountStorage) {
282
-
preparationWarnings = 0;
283
-
}
284
-
}
285
-
if (buildingWarnings > 0) {
286
-
if (oldBuildingWarningCache == buildingWarnings && buildingWarnings > spamLimit) {
287
-
log("FL_WARN# Same built chunk count returned " + buildingWarnings + " time(s) in a row! Had it be " + chunkTryLimit + " time(s) in a row, chunk building would've stopped");
288
-
if (debug) logPreRendering(chunkLoadedCount);
287
+
288
+
if (!closeBuild) {
289
+
//Log Warnings
290
+
finalintspamLimit = 2;
291
+
if (preparationWarnings > 0) {
292
+
if (oldPreparationWarningCache == preparationWarnings && preparationWarnings > spamLimit) {
293
+
log("FL_WARN# Same prepared chunk count returned " + preparationWarnings + " time(s) in a row! Had it be " + chunkTryLimit + " time(s) in a row, chunk preparation would've stopped");
294
+
if (debug) logPreRendering(chunkLoadedCount);
295
+
}
296
+
297
+
if (chunkLoadedCount > oldChunkLoadedCountStorage) {
298
+
preparationWarnings = 0;
299
+
}
289
300
}
290
-
if (chunkBuildCount > oldChunkBuildCountStorage) {
291
-
buildingWarnings = 0;
301
+
302
+
if (buildingWarnings > 0) {
303
+
if (oldBuildingWarningCache == buildingWarnings && buildingWarnings > spamLimit) {
304
+
log("FL_WARN# Same built chunk count returned " + buildingWarnings + " time(s) in a row! Had it be " + chunkTryLimit + " time(s) in a row, chunk building would've stopped");
305
+
if (debug) logPreRendering(chunkLoadedCount);
306
+
}
307
+
308
+
if (chunkBuildCount > oldChunkBuildCountStorage) {
309
+
buildingWarnings = 0;
310
+
}
292
311
}
293
312
}
294
313
}
314
+
295
315
//Next two if() statements stop building when their respective tasks are completed
0 commit comments