From c5504379e47f4a52a27346b9a3d572a4e78356aa Mon Sep 17 00:00:00 2001 From: fullwall Date: Tue, 30 Oct 2012 21:23:36 +0800 Subject: [PATCH] Fix --- src/main/java/net/citizensnpcs/npc/CitizensNPC.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/citizensnpcs/npc/CitizensNPC.java b/src/main/java/net/citizensnpcs/npc/CitizensNPC.java index 87fb01060..30e91022d 100644 --- a/src/main/java/net/citizensnpcs/npc/CitizensNPC.java +++ b/src/main/java/net/citizensnpcs/npc/CitizensNPC.java @@ -93,8 +93,8 @@ public abstract class CitizensNPC extends AbstractNPC { Spawned spawned = getTrait(Spawned.class); CurrentLocation spawnLocation = getTrait(CurrentLocation.class); try { - spawned.load(root.getRelative("spawned")); - spawnLocation.load(root.getRelative("location")); + spawned.load(root.getRelative("traits.spawned")); + spawnLocation.load(root.getRelative("traits.location")); if (spawned.shouldSpawn() && spawnLocation.getLocation() != null) spawn(spawnLocation.getLocation()); } catch (NPCLoadException e) {