Skip to content

Commit 512b933

Browse files
committed
fix server crash
1 parent 1493dfb commit 512b933

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package com.abdelaziz.fastload;
22

33
import com.abdelaziz.fastload.config.FLConfig;
4+
import net.minecraftforge.api.distmarker.Dist;
45
import net.minecraftforge.fml.common.Mod;
6+
import net.minecraftforge.fml.loading.FMLEnvironment;
57
import org.slf4j.Logger;
68
import 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
}

0 commit comments

Comments
 (0)