Skip to content

Commit 3728f80

Browse files
committed
//hollow: Limit thickness to >= 1
Thickness 0 behaved like thickness 1
1 parent 0ecacc8 commit 3728f80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,11 +550,11 @@ public int deform(Actor actor, LocalSession session, EditSession editSession,
550550
@Logging(REGION)
551551
public int hollow(Actor actor, EditSession editSession,
552552
@Selection Region region,
553-
@Arg(desc = "Thickness of the shell to leave", def = "0")
553+
@Arg(desc = "Thickness of the shell to leave", def = "1")
554554
int thickness,
555555
@Arg(desc = "The pattern of blocks to replace the hollowed area with", def = "air")
556556
Pattern pattern) throws WorldEditException {
557-
checkCommandArgument(thickness >= 0, "Thickness must be >= 0");
557+
checkCommandArgument(thickness >= 1, "Thickness must be >= 1");
558558

559559
int affected = editSession.hollowOutRegion(region, thickness, pattern);
560560
actor.printInfo(TranslatableComponent.of("worldedit.hollow.changed", TextComponent.of(affected)));

0 commit comments

Comments
 (0)