mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-06-23 13:14:47 +02:00
Some more cleanup
This commit is contained in:
parent
eb35dbe1a6
commit
8d1def2ea0
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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() */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user