Don't spam the log when in a replay

This commit is contained in:
ZacSharp 2023-01-10 18:53:43 +01:00
parent 75e39e7ef5
commit a6f3c95684
No known key found for this signature in database
GPG Key ID: 9453647B005083A3

View File

@ -145,7 +145,7 @@ public class WorldProvider implements IWorldProvider, Helper {
System.out.println("mc.world loaded unnoticed! Loading Baritone cache now.");
initWorld(mc.world.provider.getDimensionType().getId());
}
} else if (currentWorld == null && mc.world != null) {
} else if (currentWorld == null && mc.world != null && (mc.isSingleplayer() || mc.getCurrentServerData() != null)) {
System.out.println("Retrying to load Baritone cache");
initWorld(mc.world.provider.getDimensionType().getId());
}