File tree Expand file tree Collapse file tree
src/main/java/com/abdelaziz/fastload Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .abdelaziz .fastload ;
22
33import com .abdelaziz .fastload .config .FLConfig ;
4+ import net .minecraftforge .api .distmarker .Dist ;
45import net .minecraftforge .fml .common .Mod ;
6+ import net .minecraftforge .fml .loading .FMLEnvironment ;
57import org .slf4j .Logger ;
68import org .slf4j .LoggerFactory ;
79
@@ -13,12 +15,14 @@ public class FastLoad {
1315
1416 public FastLoad () {
1517 FLConfig .loadClass ();
16- LOGGER .info ("CHUNK_TRY_LIMIT: " + getChunkTryLimit ());
17- LOGGER .info ("CANCEL_LOADING_SCREEN: " + getCloseUnsafe ().toString ().toUpperCase ());
18+ if (FMLEnvironment .dist == Dist .CLIENT ) {
19+ LOGGER .info ("CHUNK_TRY_LIMIT: " + getChunkTryLimit ());
20+ LOGGER .info ("CANCEL_LOADING_SCREEN: " + getCloseUnsafe ().toString ().toUpperCase ());
21+ LOGGER .info ("PRE_RENDER_AREA: " + getPreRenderArea ());
22+ LOGGER .info ("PRE_RENDER_RADIUS: " + getPreRenderRadius ());
23+ }
1824 LOGGER .info ("DEBUG MODE: " + getDebug ().toString ().toUpperCase ());
1925 LOGGER .info ("SPAWN_CHUNK_RADIUS: " + getPregenRadius (false ));
2026 LOGGER .info ("SPAWN CHUNK AREA: " + getPregenArea ());
21- LOGGER .info ("PRE_RENDER_RADIUS: " + getPreRenderRadius ());
22- LOGGER .info ("PRE_RENDER_AREA: " + getPreRenderArea ());
2327 }
2428}
You can’t perform that action at this time.
0 commit comments