From b909af873d35a7ad9721457f29e4854a1b7f2382 Mon Sep 17 00:00:00 2001 From: "main()" Date: Mon, 20 Aug 2012 10:22:39 +0200 Subject: [PATCH] Should fix #847 (NPE in the GeneratorPlotter for worlds with a null generator) --- .../java/com/onarandombox/MultiverseCore/MultiverseCore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/onarandombox/MultiverseCore/MultiverseCore.java b/src/main/java/com/onarandombox/MultiverseCore/MultiverseCore.java index e9c6ad16..c8fa926d 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/MultiverseCore.java +++ b/src/main/java/com/onarandombox/MultiverseCore/MultiverseCore.java @@ -383,7 +383,7 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core { public int getValue() { int count = 0; for (MultiverseWorld w : core.getMVWorldManager().getMVWorlds()) - if (w.getGenerator().equals(gen)) + if (gen.equals(w.getGenerator())) count++; core.log(Level.FINE, String.format("Tracking %d worlds of type %s", count, gen)); return count;