this.voxelMessage.replaceData();
}
}
public void setVoxel(final int voxel)
{
<BUG>if (this.brushTools.containsKey(this.player.getItemInHand().getType()))
{
final BrushTool brushTool = this.brushTools.get(this.player.getItemInHand().getType());
SniperMaterialChangedEvent event = new SniperMaterialChangedEvent(this, new MaterialData(brushTool.data.getVoxelId(), brushTool.data.getData()), new MaterialData(voxel, brushTool.data.getData()));</BUG>
brushTool.data.setVoxelId(voxel);

this.voxelMessage.replaceData();
}
}
public void setVoxel(final int voxel)
{
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);
SniperMaterialChangedEvent event = new SniperMaterialChangedEvent(this, new MaterialData(brushTool.data.getVoxelId(), brushTool.data.getData()), new MaterialData(voxel, brushTool.data.getData()));
brushTool.data.setVoxelId(voxel);
