Add debug option for dumping IDs of blocks with no render data

This commit is contained in:
Mike Primm 2014-01-06 21:41:12 -06:00
parent 76863aeb71
commit 07e7d53a93
2 changed files with 14 additions and 0 deletions

View File

@ -568,6 +568,18 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
public List<String> getModList() {
return Collections.emptyList();
}
@Override
public Map<Integer, String> getBlockIDMap() {
String[] bsn = helper.getBlockShortNames();
HashMap<Integer, String> map = new HashMap<Integer, String>();
for (int i = 0; i < bsn.length; i++) {
if (bsn[i] != null) {
map.put(i, bsn[i]);
}
}
return map;
}
}
/**
* Player access abstraction class

View File

@ -445,3 +445,5 @@ verbose: false
# Enables debugging.
#debuggers:
# - class: org.dynmap.debug.LogDebugger
# Debug: dump blocks missing render data
dump-missing-blocks: false