From 33d0d7cd6c2cf131f2f3e6de1b3678658647ef77 Mon Sep 17 00:00:00 2001 From: Albert Pham Date: Tue, 12 Mar 2013 14:07:25 -0700 Subject: [PATCH] Fixed WORLDEDIT-2717, max-blocks-changed . maximum overriden by default min(default_limit, max_limit) meant that the max limit was really default_limit when the default was less than the max --- src/main/java/com/sk89q/worldedit/WorldEdit.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/WorldEdit.java b/src/main/java/com/sk89q/worldedit/WorldEdit.java index 027df492c..d164e55e7 100644 --- a/src/main/java/com/sk89q/worldedit/WorldEdit.java +++ b/src/main/java/com/sk89q/worldedit/WorldEdit.java @@ -334,8 +334,7 @@ public class WorldEdit { } } else { // Bound the change limit - int maxChangeLimit = Math.min(config.defaultChangeLimit, - config.maxChangeLimit); + int maxChangeLimit = config.maxChangeLimit; if (currentChangeLimit == -1 || currentChangeLimit > maxChangeLimit) { session.setBlockChangeLimit(maxChangeLimit); }