From af32399dd2201edd4d5e5a111f469152ffc609dd Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Fri, 23 Jun 2023 10:40:40 +0200 Subject: [PATCH] Correct calculating the plot price, if 'merge' differs from 'claim' --- Core/src/main/java/com/plotsquared/core/command/Auto.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Auto.java b/Core/src/main/java/com/plotsquared/core/command/Auto.java index 2490af981..a31d17c46 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Auto.java +++ b/Core/src/main/java/com/plotsquared/core/command/Auto.java @@ -298,7 +298,7 @@ public class Auto extends SubCommand { PlotExpression costExp = plotarea.getPrices().get("claim"); PlotExpression mergeCostExp = plotarea.getPrices().get("merge"); int size = sizeX * sizeZ; - double mergeCost = size > 1 && mergeCostExp == null ? 0d : mergeCostExp.evaluate(size); + double mergeCost = size <= 1 || mergeCostExp == null ? 0d : mergeCostExp.evaluate(size); double cost = costExp.evaluate(Settings.Limit.GLOBAL ? player.getPlotCount() : player.getPlotCount(plotarea.getWorldName()));