Perf: Data storage.
This commit is contained in:
parent
d1e29e7972
commit
2f1084e35a
|
|
@ -365,8 +365,11 @@ public abstract class DataStore
|
|||
{
|
||||
//subdivisions are easy
|
||||
if(newClaim.parent != null)
|
||||
{
|
||||
if(!newClaim.parent.children.contains(newClaim))
|
||||
{
|
||||
newClaim.parent.children.add(newClaim);
|
||||
}
|
||||
newClaim.inDataStore = true;
|
||||
if(writeToStorage)
|
||||
{
|
||||
|
|
@ -397,7 +400,6 @@ public abstract class DataStore
|
|||
{
|
||||
PlayerData ownerData = this.getPlayerData(newClaim.ownerID);
|
||||
ownerData.getClaims().add(newClaim);
|
||||
this.savePlayerData(newClaim.ownerID, ownerData);
|
||||
}
|
||||
|
||||
//make sure the claim is saved to disk
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user