fix null uuid when one hasn't been generated yet
This commit is contained in:
parent
b8e149b91b
commit
dfbd9bebce
@ -52,6 +52,7 @@ public class NPCModel {
|
||||
}
|
||||
|
||||
public UUID getUuid() {
|
||||
if (this.uuid == null) this.uuid = UUID.randomUUID();
|
||||
return this.uuid;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user