Log when doing things out of the ordinary
This commit is contained in:
parent
77b2b26a7a
commit
75e39e7ef5
|
@ -85,6 +85,7 @@ public class WorldProvider implements IWorldProvider, Helper {
|
||||||
folderName = mc.getCurrentServerData().serverIP;
|
folderName = mc.getCurrentServerData().serverIP;
|
||||||
} else {
|
} else {
|
||||||
//replaymod causes null currentServerData and false singleplayer.
|
//replaymod causes null currentServerData and false singleplayer.
|
||||||
|
System.out.println("World seems to be a replay. Not loading Baritone cache.");
|
||||||
currentWorld = null;
|
currentWorld = null;
|
||||||
mcWorld = mc.world;
|
mcWorld = mc.world;
|
||||||
return;
|
return;
|
||||||
|
@ -137,12 +138,15 @@ public class WorldProvider implements IWorldProvider, Helper {
|
||||||
private final void detectAndHandleBrokenLoading() {
|
private final void detectAndHandleBrokenLoading() {
|
||||||
if (this.mcWorld != mc.world) {
|
if (this.mcWorld != mc.world) {
|
||||||
if (this.currentWorld != null) {
|
if (this.currentWorld != null) {
|
||||||
|
System.out.println("mc.world unloaded unnoticed! Unloading Baritone cache now.");
|
||||||
closeWorld();
|
closeWorld();
|
||||||
}
|
}
|
||||||
if (mc.world != null) {
|
if (mc.world != null) {
|
||||||
|
System.out.println("mc.world loaded unnoticed! Loading Baritone cache now.");
|
||||||
initWorld(mc.world.provider.getDimensionType().getId());
|
initWorld(mc.world.provider.getDimensionType().getId());
|
||||||
}
|
}
|
||||||
} else if (currentWorld == null && mc.world != null) {
|
} else if (currentWorld == null && mc.world != null) {
|
||||||
|
System.out.println("Retrying to load Baritone cache");
|
||||||
initWorld(mc.world.provider.getDimensionType().getId());
|
initWorld(mc.world.provider.getDimensionType().getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user