Get 1.12.2 blockname based textures working

This commit is contained in:
Mike Primm 2018-08-05 21:27:18 -05:00
parent 5b2fbab8ad
commit c12e2a6ef9
5 changed files with 37 additions and 19 deletions

View file

@ -545,11 +545,14 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
@Override
public Map<Integer, String> getBlockIDMap() {
String[] bsn = helper.getBlockShortNames();
String[] bsn = helper.getBlockNames();
HashMap<Integer, String> map = new HashMap<Integer, String>();
for (int i = 0; i < bsn.length; i++) {
if (bsn[i] != null) {
map.put(i, "minecraft:" + bsn[i]);
if (bsn[i].indexOf(':') < 0)
map.put(i, "minecraft:" + bsn[i]);
else
map.put(i, bsn[i]);
}
}
return map;