fix null uuid when one hasn't been generated yet
This commit is contained in:
parent
b8e149b91b
commit
dfbd9bebce
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ public class NPCModel {
|
|||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
if (this.uuid == null) this.uuid = UUID.randomUUID();
|
||||
return this.uuid;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue