@Override public String getPath() { WikiMod mod = getMod(); WikiTab tab = this; String lang = ClientHelper.getLang(); String dir = getData().getSaveDirectory(); if (dir.equals("")) { return Enchiridion.root + File.separator + "wiki" + File.separator + mod.getKey() + File.separator + tab.getKey() + File.separator + lang + ".json"; } else { String root = Enchiridion.root.getParentFile().getParentFile().getParentFile().toString(); return root + File.separator + "src" + File.separator + "main" + File.separator + "resources" + File.separator + "assets" + File.separator + dir + File.separator + "wiki" + File.separator + mod.getKey() + File.separator + tab.getKey() + File.separator + lang + ".json"; } }
@Override public void markDirty() { super.markDirty(); mod.markDirty(); }
@Override public String getUnlocalized() { return mod.getUnlocalized() + "." + getKey(); }