diff --git a/src/main/java/org/dynmap/DynmapPlugin.java b/src/main/java/org/dynmap/DynmapPlugin.java index d25438b1..3ecf43d0 100644 --- a/src/main/java/org/dynmap/DynmapPlugin.java +++ b/src/main/java/org/dynmap/DynmapPlugin.java @@ -22,8 +22,8 @@ public class DynmapPlugin extends JavaPlugin { private BukkitPlayerDebugger debugger = new BukkitPlayerDebugger(this); - public DynmapPlugin(PluginLoader pluginLoader, Server instance, PluginDescriptionFile desc, File plugin, ClassLoader cLoader) { - super(pluginLoader, instance, desc, plugin, cLoader); + public DynmapPlugin(PluginLoader pluginLoader, Server instance, PluginDescriptionFile desc, File folder, File plugin, ClassLoader cLoader) { + super(pluginLoader, instance, desc, folder, plugin, cLoader); } public World getWorld() { diff --git a/src/main/java/org/dynmap/kzedmap/CaveTileRenderer.java b/src/main/java/org/dynmap/kzedmap/CaveTileRenderer.java index 0ccea184..67bb1ed9 100644 --- a/src/main/java/org/dynmap/kzedmap/CaveTileRenderer.java +++ b/src/main/java/org/dynmap/kzedmap/CaveTileRenderer.java @@ -22,7 +22,7 @@ public class CaveTileRenderer extends DefaultTileRenderer { if(y < 0) return Color.BLACK; - int id = world.getBlockAt(x, y, z).getTypeID(); + int id = world.getBlockTypeIdAt(x, y, z); switch(seq) { case 0: diff --git a/src/main/java/org/dynmap/kzedmap/DefaultTileRenderer.java b/src/main/java/org/dynmap/kzedmap/DefaultTileRenderer.java index 81eb3546..de9596da 100644 --- a/src/main/java/org/dynmap/kzedmap/DefaultTileRenderer.java +++ b/src/main/java/org/dynmap/kzedmap/DefaultTileRenderer.java @@ -43,20 +43,6 @@ public class DefaultTileRenderer implements MapTileRenderer { int iy = tile.my; int iz = tile.mz; - Block block = tile.getMap().getWorld().getBlockAt(ix, iy, iz); - if (block == null) { - debugger.debug("Could not get block for rendering."); - return; - } - Chunk chunk = block.getChunk(); - if (chunk == null) { - debugger.debug("Could not get chunk for rendering."); - return; - } - if (!world.isChunkLoaded(chunk)) { - debugger.debug("Chunk was not loaded, but we'll still continue render."); - } - int jx, jz; int x, y; @@ -111,7 +97,7 @@ public class DefaultTileRenderer implements MapTileRenderer { if(y < 0) return Color.BLUE; - int id = world.getBlockAt(x, y, z).getTypeID(); + int id = world.getBlockTypeIdAt(x, y, z); switch(seq) { case 0: