Skip to content

Commit

Permalink
NPE fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nossr50 committed Apr 26, 2012
1 parent b8e128e commit 22169c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/gmail/nossr50/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public class Config extends ConfigLoader{

public static int xpGainMultiplier = getExperienceGainsGlobalMultiplier();
public static int xpGainMultiplier = 1;

/*
* GENERAL SETTINGS
Expand Down Expand Up @@ -319,6 +319,7 @@ public static String getMySQLUserPassword() {
public Config(mcMMO plugin) {
super(plugin, "config.yml");
config = plugin.getConfig();
xpGainMultiplier = getExperienceGainsGlobalMultiplier();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
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;
Expand Down

0 comments on commit 22169c6

Please sign in to comment.