Trial fix for duplicate UUID spawned

This commit is contained in:
fullwall 2021-09-27 01:36:23 +08:00
parent 3d3de6576d
commit 18423134fa

View File

@ -237,7 +237,7 @@ public class CitizensNPC extends AbstractNPC {
public boolean spawn(Location at, SpawnReason reason) {
Preconditions.checkNotNull(at, "location cannot be null");
Preconditions.checkNotNull(reason, "reason cannot be null");
if (isSpawned()) {
if (getEntity() != null) {
Messaging.debug("Tried to spawn", getId(), "while already spawned. SpawnReason." + reason);
return false;
}