Add debug option for dumping IDs of blocks with no render data
This commit is contained in:
parent
f818e2491b
commit
078e6b3eb9
2 changed files with 14 additions and 0 deletions
|
|
@ -568,6 +568,18 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
||||||
public List<String> getModList() {
|
public List<String> getModList() {
|
||||||
return Collections.emptyList();
|
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
|
* Player access abstraction class
|
||||||
|
|
|
||||||
|
|
@ -445,3 +445,5 @@ verbose: false
|
||||||
# Enables debugging.
|
# Enables debugging.
|
||||||
#debuggers:
|
#debuggers:
|
||||||
# - class: org.dynmap.debug.LogDebugger
|
# - class: org.dynmap.debug.LogDebugger
|
||||||
|
# Debug: dump blocks missing render data
|
||||||
|
dump-missing-blocks: false
|
||||||
Loading…
Add table
Add a link
Reference in a new issue