diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-15 22:02:43 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-15 22:02:43 +0200 |
commit | 963fd7cf012472b0517e21496799945c14d8d1fe (patch) | |
tree | 850bae67135f583d054c6b00da8e3685152009ed | |
parent | 9c51f6e1772b086e10cd63cccbba08fe0a95d242 (diff) | |
download | Essentials-963fd7cf012472b0517e21496799945c14d8d1fe.tar Essentials-963fd7cf012472b0517e21496799945c14d8d1fe.tar.gz Essentials-963fd7cf012472b0517e21496799945c14d8d1fe.tar.lz Essentials-963fd7cf012472b0517e21496799945c14d8d1fe.tar.xz Essentials-963fd7cf012472b0517e21496799945c14d8d1fe.zip |
Fix #682 line numbers of trade signs corrected
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignTrade.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignTrade.java b/Essentials/src/com/earth2me/essentials/signs/SignTrade.java index f11a47201..1b5d72356 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignTrade.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignTrade.java @@ -136,7 +136,7 @@ public class SignTrade extends EssentialsSign sign.setLine(index, stackamount + " " + split[1] + ":" + amount); return; } - throw new SignException(Util.format("invalidSignLine", index)); + throw new SignException(Util.format("invalidSignLine", index+1)); } protected final Trade getTrade(final ISign sign, final int index, final boolean fullAmount, final boolean notEmpty, final IEssentials ess) throws SignException @@ -171,7 +171,7 @@ public class SignTrade extends EssentialsSign item.setAmount(fullAmount ? amount : stackamount); return new Trade(item, ess); } - throw new SignException(Util.format("invalidSignLine", index)); + throw new SignException(Util.format("invalidSignLine", index+1)); } protected final void substractAmount(final ISign sign, final int index, final Trade trade) throws SignException @@ -230,6 +230,6 @@ public class SignTrade extends EssentialsSign sign.setLine(index, stackamount + " " + split[1] + ":" + (amount + Math.round(value))); return; } - throw new SignException(Util.format("invalidSignLine", index)); + throw new SignException(Util.format("invalidSignLine", index+1)); } } |