mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 11:40:41 +00:00
fix other NPE
This commit is contained in:
parent
e08db3d12b
commit
88d8339cfd
1 changed files with 2 additions and 1 deletions
|
@ -140,7 +140,8 @@ public class MainCommand extends Command {
|
|||
if (EconHandler.manager != null) {
|
||||
PlotArea area = player.getApplicablePlotArea();
|
||||
if (area != null) {
|
||||
Double price = area.PRICES.get(cmd.getFullId()).evalute(0d);
|
||||
Expression<Double> priceEval = area.PRICES.get(cmd.getFullId());
|
||||
Double price = priceEval != null ? priceEval.evalute(0d) : 0d;
|
||||
if (price != null && EconHandler.manager.getMoney(player) < price) {
|
||||
if (failure != null) {
|
||||
failure.run();
|
||||
|
|
Loading…
Reference in a new issue