mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-28 05:35:45 +01:00
Fix
This commit is contained in:
parent
579385cb0d
commit
c5504379e4
@ -93,8 +93,8 @@ public abstract class CitizensNPC extends AbstractNPC {
|
|||||||
Spawned spawned = getTrait(Spawned.class);
|
Spawned spawned = getTrait(Spawned.class);
|
||||||
CurrentLocation spawnLocation = getTrait(CurrentLocation.class);
|
CurrentLocation spawnLocation = getTrait(CurrentLocation.class);
|
||||||
try {
|
try {
|
||||||
spawned.load(root.getRelative("spawned"));
|
spawned.load(root.getRelative("traits.spawned"));
|
||||||
spawnLocation.load(root.getRelative("location"));
|
spawnLocation.load(root.getRelative("traits.location"));
|
||||||
if (spawned.shouldSpawn() && spawnLocation.getLocation() != null)
|
if (spawned.shouldSpawn() && spawnLocation.getLocation() != null)
|
||||||
spawn(spawnLocation.getLocation());
|
spawn(spawnLocation.getLocation());
|
||||||
} catch (NPCLoadException e) {
|
} catch (NPCLoadException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user