Extend chunk load/generate fault in volume

This commit is contained in:
Mike Primm 2011-09-15 08:16:22 +08:00 committed by mikeprimm
parent 98d18260c4
commit 33add48697
2 changed files with 8 additions and 8 deletions

View file

@ -589,13 +589,13 @@ public class DynmapPlugin extends JavaPlugin {
/* Touch extreme corners */
int x = event.getChunk().getX() << 4;
int z = event.getChunk().getZ() << 4;
mapManager.touchVolume(new Location(event.getWorld(), x, 0, z), new Location(event.getWorld(), x+15, 127, z+15));
mapManager.touchVolume(new Location(event.getWorld(), x, 0, z), new Location(event.getWorld(), x+16, 128, z+16));
}
@Override
public void onChunkPopulate(ChunkPopulateEvent event) {
int x = event.getChunk().getX() << 4;
int z = event.getChunk().getZ() << 4;
mapManager.touchVolume(new Location(event.getWorld(), x, 0, z), new Location(event.getWorld(), x+15, 127, z+15));
mapManager.touchVolume(new Location(event.getWorld(), x, 0, z), new Location(event.getWorld(), x+16, 128, z+16));
}
@Override
public void onWorldLoad(WorldLoadEvent event) {