Some more cleanup
This commit is contained in:
parent
3ed0c25064
commit
3ae8757876
3 changed files with 3 additions and 10 deletions
|
|
@ -86,7 +86,7 @@ public class BukkitWorld extends DynmapWorld {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public MapChunkCache getChunkCache(List<DynmapChunk> chunks) {
|
public MapChunkCache getChunkCache(List<DynmapChunk> chunks) {
|
||||||
MapChunkCache c = new NewMapChunkCache();
|
NewMapChunkCache c = new NewMapChunkCache();
|
||||||
c.setChunks(this, chunks);
|
c.setChunks(this, chunks);
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -406,10 +406,9 @@ public class NewMapChunkCache implements MapChunkCache {
|
||||||
init = true;
|
init = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@SuppressWarnings({ "rawtypes" })
|
public void setChunks(BukkitWorld dw, List<DynmapChunk> chunks) {
|
||||||
public void setChunks(DynmapWorld dw, List<DynmapChunk> chunks) {
|
|
||||||
this.dw = dw;
|
this.dw = dw;
|
||||||
this.w = ((BukkitWorld)dw).getWorld();
|
this.w = dw.getWorld();
|
||||||
if((getworldhandle != null) && (craftworld == null)) {
|
if((getworldhandle != null) && (craftworld == null)) {
|
||||||
try {
|
try {
|
||||||
craftworld = getworldhandle.invoke(w); /* World.getHandle() */
|
craftworld = getworldhandle.invoke(w); /* World.getHandle() */
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
package org.dynmap.utils;
|
package org.dynmap.utils;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import org.dynmap.DynmapChunk;
|
|
||||||
import org.dynmap.DynmapWorld;
|
import org.dynmap.DynmapWorld;
|
||||||
import org.dynmap.common.BiomeMap;
|
import org.dynmap.common.BiomeMap;
|
||||||
|
|
||||||
|
|
@ -14,10 +12,6 @@ public interface MapChunkCache {
|
||||||
public static class VisibilityLimit {
|
public static class VisibilityLimit {
|
||||||
public int x0, x1, z0, z1;
|
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
|
* Set chunk data type needed
|
||||||
* @param blockdata - need block type and data for chunk
|
* @param blockdata - need block type and data for chunk
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue