Add debugging info for lodWorld

This commit is contained in:
TomTheFurry
2022-03-30 19:52:27 +08:00
parent 8a76c8cadc
commit 5a58fa92b3
@@ -64,6 +64,7 @@ public class LodWorld
*/
public void selectWorld(String newWorldName)
{
ApiShared.LOGGER.error("Selecting world {} while in world {}", newWorldName, worldName);
if (worldName.equals(newWorldName))
// don't recreate everything if we
// didn't actually change worlds
@@ -84,6 +85,7 @@ public class LodWorld
*/
public void deselectWorld()
{
ApiShared.LOGGER.error("Deselecting world {}", worldName);
worldName = NO_WORLD_LOADED;
saveAllDimensions(true); // Make sure all dims are saved. This will block threads
lodDimensions = null;
@@ -99,6 +101,7 @@ public class LodWorld
{
if (lodDimensions == null)
return;
ApiShared.LOGGER.error("Adding dim {} to world {}", newDimension, worldName);
LodDimension oldDim = lodDimensions.put(newDimension.dimension, newDimension);
if (oldDim != null)