Fixing zero initalize for entity xp + party share

This commit is contained in:
nossr50 2019-03-05 22:07:02 -08:00
parent 608a523996
commit 38c11d1601
2 changed files with 3 additions and 2 deletions

View File

@ -201,6 +201,7 @@ public class MainConfig extends ConfigValidated {
public static final String LIGHTNING = "_Lightning";
public static final String GOLD_BLOCK = "GOLD_BLOCK";
public static final String PICKAXE = "_Pickaxe";
public static final String EXP_SHARE_BONUS_BASE = "ExpShare_bonus_base";
public MainConfig() {
//super(McmmoCore.getDataFolderPath().getAbsoluteFile(), "config.yml", true);
@ -848,7 +849,7 @@ public class MainConfig extends ConfigValidated {
}
public double getPartyShareBonusBase() {
return getDoubleValue(PARTY, SHARING_EXP_SHARE_BONUS_BASE);
return getDoubleValue(PARTY, SHARING, EXP_SHARE_BONUS_BASE);
}
public double getPartyShareBonusIncrease() {

View File

@ -27,7 +27,7 @@ public class StringUtils {
*/
public static String getEntityConfigName(EntityType entityType)
{
return entityType.toString();
return getCapitalized(entityType.toString());
}
public static String getPrettyItemString(Material material) {