From 0c9d6b9cc836b6bd01b015f4dbc90388af1cc688 Mon Sep 17 00:00:00 2001 From: Misode Date: Sat, 26 Feb 2022 05:14:20 +0100 Subject: [PATCH] Fix mcmeta cache not being refreshed --- .github/workflows/deploy.yml | 2 +- src/app/components/previews/DensityFunctionPreview.tsx | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 155216ac..86cf0748 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,7 +20,7 @@ jobs: - name: Build run: | npm install - export latest_version="'${{ fromJson(steps.get_latest_version.outputs.data).commit.sha }}'" + export latest_version="'${{ fromJson(steps.get_latest_version.outputs.data).id }}'" npm run build - name: Deploy diff --git a/src/app/components/previews/DensityFunctionPreview.tsx b/src/app/components/previews/DensityFunctionPreview.tsx index e48e0e8b..8b726ec9 100644 --- a/src/app/components/previews/DensityFunctionPreview.tsx +++ b/src/app/components/previews/DensityFunctionPreview.tsx @@ -1,10 +1,9 @@ -import { useEffect, useMemo, useRef, useState } from 'preact/hooks' +import { useEffect, useRef, useState } from 'preact/hooks' import type { PreviewProps } from '.' import { Btn, BtnMenu } from '..' import { useLocale } from '../../contexts' import { useCanvas } from '../../hooks' import { densityFunction } from '../../previews' -import { CachedCollections } from '../../services' import { randomSeed } from '../../Utils' export const DensityFunctionPreview = ({ data, shown, version }: PreviewProps) => { @@ -54,8 +53,6 @@ export const DensityFunctionPreview = ({ data, shown, version }: PreviewProps) = } }, [state, seed, shown, autoScroll]) - const allBiomes = useMemo(() => CachedCollections?.get('worldgen/biome') ?? [], [version]) - return <>
{focused && }