mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Let's hope this fixes those NPEs...
This commit is contained in:
parent
477d698eac
commit
b46997bc1a
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user