mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-12 12:25:03 +08:00
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
This commit is contained in:
parent
8efb995667
commit
33d0d7cd6c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user