summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/Worth.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Worth.java b/Essentials/src/com/earth2me/essentials/Worth.java
index 336f663a9..1f9c9ec84 100644
--- a/Essentials/src/com/earth2me/essentials/Worth.java
+++ b/Essentials/src/com/earth2me/essentials/Worth.java
@@ -37,6 +37,18 @@ public class Worth implements IConf
}
if (result.signum() < 0)
{
+ result = config.getBigDecimal("worth." + itemStack.getTypeId() + "." + itemStack.getDurability(), BigDecimal.ONE.negate());
+ }
+ if (result.signum() < 0)
+ {
+ result = config.getBigDecimal("worth." + itemStack.getTypeId() + ".0", BigDecimal.ONE.negate());
+ }
+ if (result.signum() < 0)
+ {
+ result = config.getBigDecimal("worth." + itemStack.getTypeId(), BigDecimal.ONE.negate());
+ }
+ if (result.signum() < 0)
+ {
result = config.getBigDecimal("worth-" + itemStack.getTypeId(), BigDecimal.ONE.negate());
}
if (result.signum() < 0)