Let's hope this fixes those NPEs...

This commit is contained in:
GJ 2012-04-27 10:54:51 -04:00
parent 477d698eac
commit b46997bc1a

View File

@ -5,11 +5,13 @@ import com.gmail.nossr50.datatypes.HUDType;
public class Config extends ConfigLoader { public class Config extends ConfigLoader {
public int xpGainMultiplier = 1; public int xpGainMultiplier = 1;
public static Config instance = null; private static volatile Config instance;
public static Config getInstance() { public static Config getInstance() {
if(instance == null) if (instance == null) {
instance = new Config(mcMMO.p); instance = new Config(mcMMO.p);
}
return instance; return instance;
} }