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