mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 12:46:04 +01:00
Trial fix for duplicate UUID spawned
This commit is contained in:
parent
3d3de6576d
commit
18423134fa
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user