Permalink
Browse files

Fixed report writer when ST is disabled.

  • Loading branch information...
me4502 committed Dec 20, 2016
1 parent 271cfe6 commit 71378d7a5bb75fd2cde0a5af06cbefa7f6b4b1c5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/sk89q/craftbook/bukkit/ReportWriter.java
@@ -170,7 +170,7 @@ private void appendCraftBookInformation(CraftBookPlugin plugin) {
int i = CraftBookPlugin.inst().getMechanics().size();
log.put("Mechanics Loaded", "%d", i);
- log.put("ST Mechanics Loaded", "%d", plugin.getSelfTriggerManager().getSelfTriggeringMechanics().size());
+ log.put("ST Mechanics Loaded", "%d", plugin.getSelfTriggerManager() == null ? 0 : plugin.getSelfTriggerManager().getSelfTriggeringMechanics().size());
append(log);
appendln();

0 comments on commit 71378d7

Please sign in to comment.