mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-28 03:57:35 +01:00
Call new NPCDataStore method
This commit is contained in:
parent
f123b2f44e
commit
73ec77eaa0
@ -67,12 +67,7 @@ public class CitizensNPCRegistry implements NPCRegistry {
|
||||
}
|
||||
|
||||
private int generateUniqueId() {
|
||||
int count = 0;
|
||||
while (getById(count++) != null)
|
||||
; // TODO: doesn't respect existing save data that might not have
|
||||
// been loaded. This causes DBs with NPCs that weren't loaded to
|
||||
// have conflicting primary keys.
|
||||
return count - 1;
|
||||
return saves.createUniqueNPCId(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user