From 4350eb8556c4c15627c3b1e8eafc9cee3a7a1b21 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Tue, 23 Jun 2020 18:53:32 +0200 Subject: [PATCH] Fix mob sign NPE; resolves #807 --- .../main/java/de/erethon/dungeonsxl/sign/windup/MobSign.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/de/erethon/dungeonsxl/sign/windup/MobSign.java b/core/src/main/java/de/erethon/dungeonsxl/sign/windup/MobSign.java index 592f29d8..e1a51ff6 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/sign/windup/MobSign.java +++ b/core/src/main/java/de/erethon/dungeonsxl/sign/windup/MobSign.java @@ -151,6 +151,10 @@ public class MobSign extends Windup { } } + if (spawned == null) { + return null; + } + spawned.setRemoveWhenFarAway(false); spawnedMobs.add(spawned); return spawned;