Fix mcmeta cache not being refreshed

This commit is contained in:
Misode
2022-02-26 05:14:20 +01:00
parent 7806aa6ad6
commit 0c9d6b9cc8
2 changed files with 2 additions and 5 deletions

View File

@@ -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

View File

@@ -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 <>
<div class="controls preview-controls">
{focused && <Btn label={focused} class="no-pointer" />}