mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-22 21:43:41 +00:00
Catch both exceptions in EssentialsConf and valueOf instead of new
This commit is contained in:
parent
0d34b9ae9f
commit
b49aaee66d
4 changed files with 9 additions and 5 deletions
|
@ -147,11 +147,11 @@ public class Commandsell extends EssentialsCommand
|
|||
}
|
||||
else
|
||||
{
|
||||
return worth.multiply(new BigDecimal(amount));
|
||||
return worth.multiply(BigDecimal.valueOf(amount));
|
||||
}
|
||||
}
|
||||
|
||||
BigDecimal result = worth.multiply(new BigDecimal(amount));
|
||||
BigDecimal result = worth.multiply(BigDecimal.valueOf(amount));
|
||||
//TODO: Prices for Enchantments
|
||||
final ItemStack ris = is.clone();
|
||||
ris.setAmount(amount);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue