add syncronized keyword to hopefully fix plugins that insist on calling this method asynchronously
May close #279
This commit is contained in:
parent
2f190a926a
commit
a764eea215
|
|
@ -171,7 +171,7 @@ public class PlayerData
|
|||
}
|
||||
|
||||
//don't load data from secondary storage until it's needed
|
||||
public int getAccruedClaimBlocks()
|
||||
public synchronized int getAccruedClaimBlocks()
|
||||
{
|
||||
if(this.accruedClaimBlocks == null) this.loadDataFromSecondaryStorage();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user