From de9d20268130bd6ee6b26886dc73952f0e9c5af2 Mon Sep 17 00:00:00 2001 From: wizjany Date: Fri, 15 Feb 2019 14:51:26 -0500 Subject: [PATCH] Clear shaped brush material on command. The initial material is held in the factory, but if a brush was previously bound, that pattern is used. Now, using `//br set` will clear the previous material, allowing the OperationFactory's material to work. This can be changed later with `/mat`, which will once again set the fill on the tool, overriding the factory's context. --- .../sk89q/worldedit/command/composition/ShapedBrushCommand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/composition/ShapedBrushCommand.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/composition/ShapedBrushCommand.java index e2bc2f14f..2fa613db4 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/composition/ShapedBrushCommand.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/composition/ShapedBrushCommand.java @@ -74,6 +74,7 @@ public class ShapedBrushCommand extends SimpleCommand { WorldEdit.getInstance().checkMaxBrushRadius(radius); BrushTool tool = session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType()); tool.setSize(radius); + tool.setFill(null); tool.setBrush(new OperationFactoryBrush(factory, regionFactory), permission); } catch (MaxBrushRadiusException | InvalidToolBindException e) { WorldEdit.getInstance().getPlatformManager().getCommandManager().getExceptionConverter().convert(e);