Add snbt output format

This commit is contained in:
Misode
2024-06-22 16:52:01 +02:00
parent 074790cf6b
commit c277880a01
3 changed files with 29 additions and 1 deletions

View File

@@ -153,7 +153,7 @@ export function SourcePanel({ name, model, blockStates, doCopy, doDownload, doIm
useEffect(() => {
if (!editor.current || !retransform.current) return
if (!highlighting || braceLoaded) {
editor.current.configure(indent, format)
editor.current.configure(indent, format === 'snbt' ? 'yaml' : format)
retransform.current()
}
}, [indent, format, highlighting, braceLoaded])