Move server related TODO comment

This commit is contained in:
James Seibel
2021-02-15 21:17:26 -06:00
parent 945fa03271
commit 789899747c
2 changed files with 4 additions and 2 deletions
@@ -32,7 +32,6 @@ public class LodDimension
dimension = newDimension;
width = newMaxWidth;
// TODO what can be done if connected to a server?
// dimension 0 works here since we are just looking for the save handler anyway
rfHandler = new LodFileHandler(Minecraft.getMinecraft().getIntegratedServer().getWorld(0).getSaveHandler(), this);
@@ -25,6 +25,9 @@ import net.minecraftforge.event.terraingen.PopulateChunkEvent;
import net.minecraftforge.event.world.ChunkEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
//TODO Find a way to replace getIntegratedServer so this mod could be used on non-local worlds.
// Minecraft.getMinecraft().getIntegratedServer()
/**
* This is used by the client.
*
@@ -172,7 +175,7 @@ public class ClientProxy extends CommonProxy
return;
int dimId = chunk.getWorld().provider.getDimension();
World world = mc.getIntegratedServer().getWorld(dimId); // TODO what can be done if not connected to a server?
World world = mc.getIntegratedServer().getWorld(dimId);
if (world == null)
return;