Remove metadata clearing code

This commit is contained in:
fullwall 2023-11-29 22:53:42 +08:00
parent 86b76e81fd
commit 578b8d38c1

View File

@ -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());
}