Skip to content

Commit

Permalink
Catch a bug, leave a 1.12 TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 13, 2017
1 parent 24a9807 commit 7f3ce3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/src/main/java/net/aufdemrand/denizen/Denizen.java
Expand Up @@ -376,7 +376,7 @@ public void onEnable() {
return;
}

if (NMSHandler.getVersion().isAtMost(NMSVersion.v1_11_R1)) {
if (NMSHandler.getVersion().isAtMost(NMSVersion.v1_11_R1)) { // TODO: 1.12 update
logInterceptor = new LogInterceptor();
}

Expand Down Expand Up @@ -962,7 +962,9 @@ public void onDisable() {
OldEventManager.doEvents(Arrays.asList("shutdown"), new BukkitScriptEntryData(null, null), context);

// Disable the log interceptor... otherwise bad things on /reload
logInterceptor.standardOutput();
if (logInterceptor != null) {
logInterceptor.standardOutput();
}

// Save notables
notableManager.saveNotables();
Expand Down

0 comments on commit 7f3ce3b

Please sign in to comment.