Citizens NPC to LivingEntity

Discussion in 'Spigot Plugin Development' started by Xocky, Jun 29, 2018.

  1. I can't cast a citizens api npc to a livingentity at onenable method.The npc isn't null and i tried to load the chuck but it didn't fix it
     
  2. what i meant with i can't cast is that the livingentity would be null
     
  3. This may help
    Code (Java):
    LivingEntity le = (LivingEntity) npc.getEntity();