mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-27 19:17:44 +01:00
NPE fix
This commit is contained in:
parent
b8e128e0a9
commit
22169c64db
@ -5,7 +5,7 @@ import com.gmail.nossr50.datatypes.HUDType;
|
||||
|
||||
public class Config extends ConfigLoader{
|
||||
|
||||
public static int xpGainMultiplier = getExperienceGainsGlobalMultiplier();
|
||||
public static int xpGainMultiplier = 1;
|
||||
|
||||
/*
|
||||
* GENERAL SETTINGS
|
||||
@ -319,6 +319,7 @@ public class Config extends ConfigLoader{
|
||||
public Config(mcMMO plugin) {
|
||||
super(plugin, "config.yml");
|
||||
config = plugin.getConfig();
|
||||
xpGainMultiplier = getExperienceGainsGlobalMultiplier();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -5,7 +5,6 @@ import org.bukkit.entity.Player;
|
||||
import org.getspout.spoutapi.gui.GenericLabel;
|
||||
import org.getspout.spoutapi.gui.GenericPopup;
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
import com.gmail.nossr50.config.Config;
|
||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||
import com.gmail.nossr50.datatypes.buttons.ButtonEscape;
|
||||
import com.gmail.nossr50.datatypes.buttons.ButtonHUDStyle;
|
||||
|
Loading…
Reference in New Issue
Block a user