add syncronized keyword to hopefully fix plugins that insist on calling this method asynchronously

May close #279
This commit is contained in:
RoboMWM 2018-09-07 16:59:47 -07:00
parent 2f190a926a
commit a764eea215

View File

@ -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();