From a13d28a6ec10840d982c78712317b5b87c2f431d Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 6 Feb 2013 15:33:24 -0500 Subject: [PATCH] Entity config files aren't working properly yet - temporary solution is to use a 1.0 base for any entity with an UNKNOWN type. --- .../java/com/gmail/nossr50/skills/utilities/CombatTools.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/skills/utilities/CombatTools.java b/src/main/java/com/gmail/nossr50/skills/utilities/CombatTools.java index 8b037fee4..7f5aff6a8 100644 --- a/src/main/java/com/gmail/nossr50/skills/utilities/CombatTools.java +++ b/src/main/java/com/gmail/nossr50/skills/utilities/CombatTools.java @@ -551,6 +551,11 @@ public final class CombatTools { baseXP = configInstance.getZombieXP(); break; + // Temporary workaround for custom entities + case UNKNOWN: + baseXP = 1.0; + break; + default: if (ModChecks.isCustomEntity(target)) { baseXP = ModChecks.getCustomEntity(target).getXpMultiplier();