mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2025-01-01 05:57:57 +01:00
Fix brush scroll size with -1 brush radius
This commit is contained in:
parent
381966e0ee
commit
594b836373
@ -12,7 +12,7 @@ public class ScrollSize extends ScrollAction {
|
||||
@Override
|
||||
public boolean increment(Player player, int amount) {
|
||||
int max = WorldEdit.getInstance().getConfiguration().maxRadius;
|
||||
double newSize = Math.max(0, Math.min(max, getTool().getSize() + amount));
|
||||
double newSize = Math.max(0, Math.min(max == -1 ? 4095 : max, getTool().getSize() + amount));
|
||||
getTool().setSize(newSize);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user