Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Navigating Turtle NPCs occasionally cause NPE while ticking entity #1569
The output of command
NPC npc = npcRegistry.createNPC(EntityType.OCELOT, "No name"); npc.setBukkitEntityType(npcSpec.getEntityType()); npc.setProtected(true); npc.setName(npcSpec.getName()); MetadataStore meta = npc.data(); meta.setPersistent(NPC.COLLIDABLE_METADATA, false); meta.setPersistent(NPC.SILENT_METADATA, true);
Once I'm in water, I also call
I had the turtle follow me by calling
After swimming around in an ocean biome for a few minutes, the crashbug is triggered. I can offer the world and more information on my plugin if this is insufficient information to reproduce the crash.
Could you please upload any relevant log info as text to pastebin, not as a
@mcmonkey4eva - updated the original bug report to include a gist to the relevant logs.
As for the input on how I'm using
That said, I did see the
Appears to be an error (NPE) on https://github.com/CitizensDev/Citizens2/blob/master/main/src/main/java/net/citizensnpcs/npc/CitizensNPC.java#L291 in that log