chore: Update upstream

31e5298 Fixed //stack erroring when given a count of 0 (2108)
This commit is contained in:
Alexander Brandes 2022-06-10 01:05:51 +02:00
parent 9b3608aada
commit d7d43869e6
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -558,7 +558,7 @@ public class RegionCommands {
@ArgFlag(name = 'm', desc = "Set the include mask, non-matching blocks become air")
Mask mask
) throws WorldEditException {
checkCommandArgument(count >= 1, "Count must be >= 1");
checkCommandArgument(count >= 1, "Multiplier must be >= 1");
//FAWE start > the mask will have been initialised with a WorldWrapper extent (very bad/slow)
new MaskTraverser(mask).setNewExtent(editSession);
@ -639,6 +639,7 @@ public class RegionCommands {
@ArgFlag(name = 'm', desc = "Set the include mask, non-matching blocks become air")
Mask mask
) throws WorldEditException {
checkCommandArgument(count >= 1, "Count must be >= 1");
//FAWE start > the mask will have been initialised with a WorldWrapper extent (very bad/slow)
new MaskTraverser(mask).setNewExtent(editSession);