Some more cleanup

This commit is contained in:
Mike Primm 2012-01-15 23:56:32 -06:00
parent eb35dbe1a6
commit 8d1def2ea0
3 changed files with 3 additions and 10 deletions

View File

@ -86,7 +86,7 @@ public class BukkitWorld extends DynmapWorld {
*/
@Override
public MapChunkCache getChunkCache(List<DynmapChunk> chunks) {
MapChunkCache c = new NewMapChunkCache();
NewMapChunkCache c = new NewMapChunkCache();
c.setChunks(this, chunks);
return c;
}

View File

@ -406,10 +406,9 @@ public class NewMapChunkCache implements MapChunkCache {
init = true;
}
}
@SuppressWarnings({ "rawtypes" })
public void setChunks(DynmapWorld dw, List<DynmapChunk> chunks) {
public void setChunks(BukkitWorld dw, List<DynmapChunk> chunks) {
this.dw = dw;
this.w = ((BukkitWorld)dw).getWorld();
this.w = dw.getWorld();
if((getworldhandle != null) && (craftworld == null)) {
try {
craftworld = getworldhandle.invoke(w); /* World.getHandle() */

View File

@ -1,7 +1,5 @@
package org.dynmap.utils;
import java.util.List;
import org.dynmap.DynmapChunk;
import org.dynmap.DynmapWorld;
import org.dynmap.common.BiomeMap;
@ -14,10 +12,6 @@ public interface MapChunkCache {
public static class VisibilityLimit {
public int x0, x1, z0, z1;
}
/**
* Set chunks to load, and world to load from
*/
void setChunks(DynmapWorld w, List<DynmapChunk> chunks);
/**
* Set chunk data type needed
* @param blockdata - need block type and data for chunk