mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Fix #682 line numbers of trade signs corrected
This commit is contained in:
parent
9c51f6e177
commit
963fd7cf01
1 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue