fix null uuid when one hasn't been generated yet

This commit is contained in:
Pyrbu 2023-04-22 00:24:26 +01:00
parent b8e149b91b
commit dfbd9bebce

@ -52,6 +52,7 @@ public class NPCModel {
} }
public UUID getUuid() { public UUID getUuid() {
if (this.uuid == null) this.uuid = UUID.randomUUID();
return this.uuid; return this.uuid;
} }