mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-06-30 16:34:46 +02: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() {
|
private int generateUniqueId() {
|
||||||
int count = 0;
|
return saves.createUniqueNPCId(this);
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user