Add call needed for sign block checks
This commit is contained in:
parent
ecd47c0b19
commit
82a2155f80
1 changed files with 9 additions and 0 deletions
|
|
@ -196,6 +196,15 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
||||||
private int chunks_in_cur_tick = 0;
|
private int chunks_in_cur_tick = 0;
|
||||||
private long cur_tick;
|
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
|
@Override
|
||||||
public void scheduleServerTask(Runnable run, long delay) {
|
public void scheduleServerTask(Runnable run, long delay) {
|
||||||
getServer().getScheduler().scheduleSyncDelayedTask(DynmapPlugin.this, run, delay);
|
getServer().getScheduler().scheduleSyncDelayedTask(DynmapPlugin.this, run, delay);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue