From 38c11d1601a7beca104e9843d49049d2bdbf3322 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 5 Mar 2019 22:07:02 -0800 Subject: [PATCH] Fixing zero initalize for entity xp + party share --- src/main/java/com/gmail/nossr50/config/MainConfig.java | 3 ++- src/main/java/com/gmail/nossr50/util/StringUtils.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/config/MainConfig.java b/src/main/java/com/gmail/nossr50/config/MainConfig.java index 36a3a891f..779998ae4 100644 --- a/src/main/java/com/gmail/nossr50/config/MainConfig.java +++ b/src/main/java/com/gmail/nossr50/config/MainConfig.java @@ -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() { diff --git a/src/main/java/com/gmail/nossr50/util/StringUtils.java b/src/main/java/com/gmail/nossr50/util/StringUtils.java index 6de3dcf5a..6649fe0ee 100644 --- a/src/main/java/com/gmail/nossr50/util/StringUtils.java +++ b/src/main/java/com/gmail/nossr50/util/StringUtils.java @@ -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) {