Moved check for fastLightingAvailable from BukkitWorld.fixAfterFastMode to fixLighting and adjusted the description for //generate.

This commit is contained in:
TomyLobo
2011-10-26 23:23:26 +02:00
parent dbc3053195
commit 0ca66ce350
2 changed files with 7 additions and 7 deletions

View File

@ -733,10 +733,8 @@ public class BukkitWorld extends LocalWorld {
@Override
public void fixAfterFastMode(Iterable<BlockVector2D> chunks) {
if (fastLightingAvailable) {
fixLighting(chunks);
}
fixLighting(chunks);
for (BlockVector2D chunkPos : chunks) {
world.refreshChunk(chunkPos.getBlockX(), chunkPos.getBlockZ());
}
@ -748,6 +746,10 @@ public class BukkitWorld extends LocalWorld {
@Override
public void fixLighting(Iterable<BlockVector2D> chunks) {
if (fastLightingAvailable) {
return;
}
try {
Object notchWorld = CraftWorld_getHandle.invoke(world);
for (BlockVector2D chunkPos : chunks) {