Call super remove(), fix trait loading bug

This commit is contained in:
aPunch 2012-03-12 13:50:48 -05:00
parent d0575e3e22
commit 4c022b1a37
3 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -101,6 +101,7 @@ public abstract class CitizensNPC extends AbstractNPC {
@Override
public void remove() {
super.remove();
manager.remove(this);
if (isSpawned())
despawn();

View File

@ -77,7 +77,7 @@ public class CitizensTraitManager implements TraitManager {
if (clazz == null)
return null;
Trait t = getTrait(clazz, npc);
t.setName(name);
//t.setName(name);
return (T) t;
}