final String[] argumentsParsed = this.parseParams(args);
if (argumentsParsed.length > 1)
{
try
{
<BUG>if (this.brushTools.containsKey(this.player.getItemInHand().getType()))
{
final BrushTool brushTool = this.brushTools.get(this.player.getItemInHand().getType());
brushTool.parse(argumentsParsed);</BUG>
}

final String[] argumentsParsed = this.parseParams(args);
if (argumentsParsed.length > 1)
{
try
{
ItemStack itemStackInHand = this.player.getItemInHand();
Material itemInHand = itemStackInHand == null ? null : itemStackInHand.getType();
if (itemInHand != null && this.brushTools.containsKey(itemInHand))
{
final BrushTool brushTool = this.brushTools.get(itemInHand);
brushTool.parse(argumentsParsed);
}
