From 973bae2d2553c5b15cea5e77ee1f6d190bf97166 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Fri, 8 May 2020 22:16:19 +0200 Subject: [PATCH] Fix NPE --- core/src/main/java/de/erethon/dungeonsxl/DungeonsXL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/de/erethon/dungeonsxl/DungeonsXL.java b/core/src/main/java/de/erethon/dungeonsxl/DungeonsXL.java index 538b8397..cfea1394 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/DungeonsXL.java +++ b/core/src/main/java/de/erethon/dungeonsxl/DungeonsXL.java @@ -758,7 +758,7 @@ public class DungeonsXL extends DREPlugin implements DungeonsAPI { public InstanceWorld getInstanceWorld(World world) { for (InstanceWorld instance : instanceCache) { - if (instance.getWorld().equals(world)) { + if (world.equals(instance.getWorld())) { return instance; } }