mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Fix mcmeta cache not being refreshed
This commit is contained in:
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@@ -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
|
||||
|
||||
@@ -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" />}
|
||||
|
||||
Reference in New Issue
Block a user