} else {   ShapeBrush sb = new ShapeBrush(); sb.makeQuadBrush(new Rectangle(0, 0, 1, 1)); sb.setTile(currentTile); setBrush(currentTool, sb); setCurrentBrush(currentTool);
    public void setCurrentTile(Tile tile) {        resetBrush();        if (currentTile != tile) {            currentTile = tile;            if (!(currentBrush instanceof CustomBrush)) {                ((ShapeBrush) currentBrush).setTile(tile);            }            tilePaletteButton.setTile(currentTile);        }    }