From 5f83643d88333d25ea83a7fa743c68e1c087e854 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Fri, 5 Feb 2021 23:20:15 +0000 Subject: [PATCH] Couple of command fixes fixes #899 --- .../main/java/com/sk89q/worldedit/command/BrushCommands.java | 1 - .../main/java/com/sk89q/worldedit/command/ToolUtilCommands.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java index 940ca35ed..7f9680a77 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java @@ -344,7 +344,6 @@ public class BrushCommands { @Switch(name = 'd', desc = "sags the catenary toward the facing direction") boolean facingDirection) throws WorldEditException { worldEdit.checkMaxBrushRadius(radius); - Brush brush = new CatenaryBrush(shell, select, facingDirection, lengthFactor); set(context, new CatenaryBrush(shell, select, facingDirection, lengthFactor)) .setSize(radius).setFill(fill); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java index 0eff1b524..f941d951c 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java @@ -284,7 +284,7 @@ public class ToolUtilCommands { ) @CommandPermissions("worldedit.brush.targetoffset") public void targetOffset(Player player, EditSession editSession, LocalSession session, - int offset) throws WorldEditException { + @Arg(name = "offset", desc = "offset", def = "0") int offset) throws WorldEditException { BrushTool tool = session.getBrushTool(player, false); if (tool == null) { player.print(TranslatableComponent.of("fawe.worldedit.brush.brush.none"));