forgot something

This commit is contained in:
aPunch 2012-01-14 21:55:45 -06:00
parent 441d6f1eb1
commit 8893bba054

View File

@ -48,12 +48,7 @@ public class CitizensNPCManager implements NPCManager {
@Override
public NPC getNPC(int id) {
for (NPC npc : spawned.values()) {
if (npc.getId() == id) {
return npc;
}
}
return null;
return byID.get(id);
}
@Override
@ -115,6 +110,10 @@ public class CitizensNPCManager implements NPCManager {
spawned.remove(mcEntity.getPlayer());
}
public void remove(NPC npc) {
byID.remove(npc.getId());
}
private WorldServer getWorldServer(World world) {
return ((CraftWorld) world).getHandle();
}