Fix waypoints load order

This commit is contained in:
fullwall 2021-04-28 22:14:59 +08:00
parent 354625afc8
commit c9d8bad4f8

View File

@ -75,10 +75,10 @@ public class Waypoints extends Trait {
}
if (provider == null)
return;
PersistenceLoader.load(provider, key.getRelative(providerName));
if (npc != null) {
provider.onSpawn(npc);
}
PersistenceLoader.load(provider, key.getRelative(providerName));
}
@Override