mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-03-02 11:31:03 +01:00
Call super remove(), fix trait loading bug
This commit is contained in:
parent
17f6c4fc70
commit
98032f8b4a
Binary file not shown.
@ -101,6 +101,7 @@ public abstract class CitizensNPC extends AbstractNPC {
|
||||
|
||||
@Override
|
||||
public void remove() {
|
||||
super.remove();
|
||||
manager.remove(this);
|
||||
if (isSpawned())
|
||||
despawn();
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user