get tool from player

This commit is contained in:
Jesse Boyd
2019-06-29 04:27:46 +10:00
parent d6280ec945
commit 8b9a2ff18c
3 changed files with 7 additions and 7 deletions

View File

@ -72,7 +72,7 @@ public class ShapedBrushCommand extends SimpleCommand<Object> {
try {
WorldEdit.getInstance().checkMaxBrushRadius(radius);
BrushTool tool = session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType());
BrushTool tool = session.getBrushTool(player);
tool.setSize(radius);
tool.setFill(null);
tool.setBrush(new OperationFactoryBrush(factory, regionFactory, session), permission);