mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 20:58:40 +01:00
Add debug option for dumping IDs of blocks with no render data
This commit is contained in:
parent
76863aeb71
commit
07e7d53a93
@ -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
|
||||
|
@ -445,3 +445,5 @@ verbose: false
|
||||
# Enables debugging.
|
||||
#debuggers:
|
||||
# - class: org.dynmap.debug.LogDebugger
|
||||
# Debug: dump blocks missing render data
|
||||
dump-missing-blocks: false
|
Loading…
Reference in New Issue
Block a user