resetBrush();
    public void setCurrentTile(Tile tile) {        resetBrush();        if (currentTile != tile) {            currentTile = tile;            if (!(currentBrush instanceof CustomBrush)) {                ((ShapeBrush) currentBrush).setTile(tile);            }            tilePaletteButton.setTile(currentTile);        }    }