Does anyone know why my NPC won't re-spawn after using this:
Code:
 @Override
	public void sendDeath(Entity source) {
			setNextAnimation(new Animation(-1));
			setNextAnimation(new Animation(12199));
			WorldTasksManager.schedule(new WorldTask() {
				public void run() {
					drop();
					finish();
					World.spawnObject(portal, false);
					stop();
				}
		}, 7);
				
	}
After the original spawn and it has been killed, it won't re-spawn. If I remove this it does, is there something I'm missing?