From d59f3503190d748ed4bfb940b0dc1bffe958a838 Mon Sep 17 00:00:00 2001 From: fullwall Date: Wed, 12 Sep 2012 17:06:21 +0800 Subject: [PATCH] Removed NPC metadata for checking that an entity is an NPC; Bukkit will not be fixing this per BUKKIT-2501 --- src/main/java/net/citizensnpcs/npc/CitizensNPC.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/net/citizensnpcs/npc/CitizensNPC.java b/src/main/java/net/citizensnpcs/npc/CitizensNPC.java index b3b5a61b0..2d63776d5 100644 --- a/src/main/java/net/citizensnpcs/npc/CitizensNPC.java +++ b/src/main/java/net/citizensnpcs/npc/CitizensNPC.java @@ -19,7 +19,6 @@ import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.entity.LivingEntity; import org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; -import org.bukkit.metadata.FixedMetadataValue; public abstract class CitizensNPC extends AbstractNPC { protected EntityLiving mcEntity; @@ -141,8 +140,6 @@ public abstract class CitizensNPC extends AbstractNPC { mcEntity.world.addEntity(mcEntity, SpawnReason.CUSTOM); mcEntity.world.players.remove(mcEntity); - getBukkitEntity().setMetadata(NPC_METADATA_MARKER, - new FixedMetadataValue(CitizensAPI.getPlugin(), true)); // Set the spawned state getTrait(CurrentLocation.class).setLocation(loc); @@ -166,6 +163,4 @@ public abstract class CitizensNPC extends AbstractNPC { ex.printStackTrace(); } } - - private static final String NPC_METADATA_MARKER = "NPC"; } \ No newline at end of file