Add debugging info for lodWorld
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user