Skip to content

Commit

Permalink
Fixed //stack erroring when given a count of 0 (#2108)
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 authored Jun 4, 2022
1 parent c515eb5 commit 31e5298
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ public int stack(Actor actor, World world, EditSession editSession, LocalSession
boolean blockUnits,
@ArgFlag(name = 'm', desc = "Set the include mask, non-matching blocks become air")
Mask mask) throws WorldEditException {
checkCommandArgument(count >= 1, "Count must be >= 1");

Mask combinedMask;
if (ignoreAirBlocks) {
if (mask == null) {
Expand Down

0 comments on commit 31e5298

Please sign in to comment.