Fix #301 update deepslate with new special renderers

This commit is contained in:
Misode
2024-10-02 17:17:56 +02:00
parent 75c662863c
commit 7754d361c3
5 changed files with 13 additions and 13 deletions

View File

@@ -18,7 +18,7 @@ export const BlockStatePreview = ({ data, shown }: PreviewProps) => {
const { value: resources } = useAsync(async () => {
if (!shown) return AsyncCancel
const resources = await getResources(version)
const definition = BlockDefinition.fromJson(PREVIEW_ID.toString(), DataModel.unwrapLists(data))
const definition = BlockDefinition.fromJson(DataModel.unwrapLists(data))
const wrapper = new ResourceWrapper(resources, {
getBlockDefinition(id) {
if (id.equals(PREVIEW_ID)) return definition