add syncronized keyword to hopefully fix plugins that insist on calling this method asynchronously
May close #279
This commit is contained in:
1 parent
2f190a926a
commit
a764eea215
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user