mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 07:37:10 +00:00
Add snbt output format
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user