From 6249d80bca9fe8f0ae6ad7341542f8e46f1ca4e8 Mon Sep 17 00:00:00 2001 From: Sn0wStorm Date: Mon, 14 Oct 2013 18:45:33 +0200 Subject: [PATCH] Disable Mob Despawning --- src/com/dre/dungeonsxl/DMobType.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/dre/dungeonsxl/DMobType.java b/src/com/dre/dungeonsxl/DMobType.java index 1e66e487..8f751fc5 100644 --- a/src/com/dre/dungeonsxl/DMobType.java +++ b/src/com/dre/dungeonsxl/DMobType.java @@ -101,6 +101,9 @@ public class DMobType { entity.setHealth(maxHealth); } + /* Disable Despawning */ + entity.setRemoveWhenFarAway(false); + /* Spawn Mob */ new DMob(entity, gWorld, this);