Item remapping

This commit is contained in:
Jesse Boyd 2017-10-07 00:49:43 +11:00
parent 3cc2cc20e7
commit 0d9f998c6c
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -34,7 +34,7 @@ public class ItemWikiScraper {
Map<String, Integer> cached = cache.get(platform);
if (cached != null) return cached;
File file = new File("lib" + File.separator + "items-" + platform.name().toLowerCase() + ".json");
File file = new File("lib" + File.separator + "item-mappings-" + platform.name().toLowerCase() + ".json");
Gson gson = new Gson();
if (file.exists()) {
try {
@ -62,7 +62,7 @@ public class ItemWikiScraper {
String url = (platform == ClipboardRemapper.RemapPlatform.PC) ? PC : PE;
String text = MainUtil.getText(url);
String header = "{{";
String header = platform == ClipboardRemapper.RemapPlatform.PE ? "=== Item IDs ===" : "{{";
String footer = "{{-}}";
String prefix = "{{id table|";