mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 10:36:10 +01:00
Remove metadata clearing code
This commit is contained in:
parent
86b76e81fd
commit
578b8d38c1
@ -96,10 +96,6 @@ public class CitizensNPC extends AbstractNPC {
|
||||
if (!keepSelected) {
|
||||
data().remove("selectors");
|
||||
}
|
||||
if (getEntity() != null) {
|
||||
getEntity().removeMetadata("NPC", CitizensAPI.getPlugin());
|
||||
getEntity().removeMetadata("NPC-ID", CitizensAPI.getPlugin());
|
||||
}
|
||||
if (getEntity() instanceof Player) {
|
||||
PlayerUpdateTask.deregisterPlayer(getEntity());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user