From e530e3b5a8c8c1b556536d6a28a7e1f680ada457 Mon Sep 17 00:00:00 2001 From: Jonathan Williams Date: Sat, 31 Aug 2013 01:29:32 -0700 Subject: [PATCH] Fix for npc vegetate. --- Plugins/Mineplex.Core/src/mineplex/core/npc/NpcManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/npc/NpcManager.java b/Plugins/Mineplex.Core/src/mineplex/core/npc/NpcManager.java index 3baac0a00..a4814b00a 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/npc/NpcManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/npc/NpcManager.java @@ -263,9 +263,9 @@ public class NpcManager extends MiniPlugin entry.Entity = entity; _npcs.put(entity.getUniqueId().toString(), entry); - if (entry.Radius == 0 && entity instanceof CraftCreature) + if (entry.Radius == 0 ) { - UtilEnt.Vegetate((org.bukkit.entity.Creature)entry.Entity); + UtilEnt.Vegetate(entry.Entity); } if (save)