aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/infopanes/HTMLInfoPane.java
diff options
context:
space:
mode:
authorRoman / Nea <roman.graef@gmail.com>2022-07-14 19:57:37 +0200
committerGitHub <noreply@github.com>2022-07-14 19:57:37 +0200
commit6489385cabc021cc36b487151b5d6c85d7617390 (patch)
tree37370f9e12f20961cc11f216841ea1420bdcc90b /src/main/java/io/github/moulberry/notenoughupdates/infopanes/HTMLInfoPane.java
parent36be173ff0505942fd9b54a39f64b703f1510d9e (diff)
downloadnotenoughupdates-6489385cabc021cc36b487151b5d6c85d7617390.tar.gz
notenoughupdates-6489385cabc021cc36b487151b5d6c85d7617390.tar.bz2
notenoughupdates-6489385cabc021cc36b487151b5d6c85d7617390.zip
Various fixes regarding finalizing the release ig (#186)
* Fix Sign calc not aligning properly with the GuiEditSign * "Fix" official wiki rendering. This one didnt receive extensive testing, but so far it works * Update notification changes * Dont reset the config lol
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/infopanes/HTMLInfoPane.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/infopanes/HTMLInfoPane.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/infopanes/HTMLInfoPane.java b/src/main/java/io/github/moulberry/notenoughupdates/infopanes/HTMLInfoPane.java
index 03f55561..de9c608f 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/infopanes/HTMLInfoPane.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/infopanes/HTMLInfoPane.java
@@ -215,8 +215,11 @@ public class HTMLInfoPane extends TextInfoPane {
}
String html;
try {
- html = wikiModel.render(wiki);
- } catch (IOException e) {
+ if (isOfficialWiki)
+ html = wiki;
+ else
+ html = wikiModel.render(wiki);
+ } catch (Exception e) {
return new HTMLInfoPane(overlay, manager, "error", "error", "Could not render wiki.", false);
}
try (PrintWriter out = new PrintWriter(new File(manager.configLocation, "debug/html.txt"))) {
@@ -330,8 +333,6 @@ public class HTMLInfoPane extends TextInfoPane {
.replaceAll("[^a-zA-Z0-9_\\-]", "_");
File output = new File(manager.configLocation, "tmp/" +
outputFileName + ".png");
- File outputExt = new File(manager.configLocation, "tmp/" +
- outputFileName + "_ext.png");
input.deleteOnExit();
output.deleteOnExit();