Fixed Slow Rift Regeneration and Various Improvements #173

Merged
SenseiKiwi merged 12 commits from master into master 2014-07-11 20:12:08 +00:00
2 changed files with 3 additions and 6 deletions
Showing only changes of commit 2c7435585d - Show all commits

View File

@@ -215,10 +215,7 @@ public class yCoordHelper
{ {
for (int dz = -1; dz <= 1; dz++) for (int dz = -1; dz <= 1; dz++)
{ {
if (!provider.chunkExists(chunkX + dx, chunkZ + dz)) provider.loadChunk(chunkX, chunkZ);
{
provider.loadChunk(chunkX, chunkZ);
}
} }
} }
return target; return target;

View File

@@ -95,8 +95,8 @@ public class RiftRegenerator implements IRegularTickReceiver {
return; return;
// The chunk at the given location must be loaded. // The chunk at the given location must be loaded.
// FIXME: I can't figure out how to check if a chunk is loaded. // Note: ChunkProviderServer.chunkExists() returns whether a chunk is
// Will only check if the chunk exists for now. This isn't a big deal. --SenseiKiwi // loaded, not whether it has already been created.
if (!world.getChunkProvider().chunkExists(x >> 4, z >> 4)) if (!world.getChunkProvider().chunkExists(x >> 4, z >> 4))
return; return;