Call new NPCDataStore method

This commit is contained in:
fullwall 2013-06-29 23:47:46 +08:00
parent f123b2f44e
commit 73ec77eaa0

View File

@ -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