Fixed console spam during world generation

This commit is contained in:
LemADEC 2017-03-04 20:53:29 +01:00
parent 64ffb9a712
commit 71857b21bc

View file

@ -2,6 +2,7 @@ package cr0s.warpdrive.world;
import cr0s.warpdrive.LocalProfiler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.config.WarpDriveConfig;
import cr0s.warpdrive.config.structures.Orb.OrbShell;
import cr0s.warpdrive.config.structures.OrbInstance;
import cr0s.warpdrive.data.JumpBlock;
@ -195,8 +196,8 @@ public final class EntitySphereGen extends Entity {
}
}
}
if (blocks != null) {
WarpDrive.logger.info("[EntitySphereGen] Saved " + blocks.size() + " blocks (estimated to " + pregenSize + ")");
if (blocks != null && blocks.size() > pregenSize) {
WarpDrive.logger.warn("[EntitySphereGen] Saved " + blocks.size() + " blocks (estimated to " + pregenSize + ")");
}
LocalProfiler.stop();
}