Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 33d0d7cd6c2cf131f2f3e6de1b3678658647ef77 1 parent 8efb995
@sk89q authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/main/java/com/sk89q/worldedit/WorldEdit.java
View
3  src/main/java/com/sk89q/worldedit/WorldEdit.java
@@ -334,8 +334,7 @@ public LocalSession getSession(LocalPlayer player) {
}
} 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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.