Hello! I am using the developer api, and when creating a NPC, npc.getEntity returns null. I know it is spawned, any ideas?
this.entity = CitizensAPI.getNPCRegistry().createNPC(EntityType.PLAYER, name);
this.entity.spawn(new Location(loc.getWorld(), loc.getX() + 31.5, loc.getY() + 17, loc.getZ() + 66));
System.out.println(this.entity.getEntity()); // prints null
```There is the code