Permalink
Browse files

Add call needed for sign block checks

  • Loading branch information...
1 parent 1a2f63b commit 278fa36f942265f8b9b2d73727e85b49e4f62d29 @mikeprimm mikeprimm committed Dec 31, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/main/java/org/dynmap/bukkit/DynmapPlugin.java
@@ -196,6 +196,15 @@ public DynmapPlugin() {
private int chunks_in_cur_tick = 0;
private long cur_tick;
+ @Override
+ public int getBlockIDAt(String wname, int x, int y, int z) {
+ World w = getServer().getWorld(wname);
+ if((w != null) && w.isChunkLoaded(x >> 4, z >> 4)) {
+ return w.getBlockTypeIdAt(x, y, z);
+ }
+ return -1;
+ }
+
@Override
public void scheduleServerTask(Runnable run, long delay) {
getServer().getScheduler().scheduleSyncDelayedTask(DynmapPlugin.this, run, delay);

0 comments on commit 278fa36

Please sign in to comment.