mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +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) {
|
if (EconHandler.manager != null) {
|
||||||
PlotArea area = player.getApplicablePlotArea();
|
PlotArea area = player.getApplicablePlotArea();
|
||||||
if (area != null) {
|
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 (price != null && EconHandler.manager.getMoney(player) < price) {
|
||||||
if (failure != null) {
|
if (failure != null) {
|
||||||
failure.run();
|
failure.run();
|
||||||
|
|
Loading…
Reference in a new issue