Fix embedded WI being replaced with dummy object when importing a file from someone else's ST instance

This commit is contained in:
Cohee
2024-01-08 20:15:43 +02:00
parent 241660087a
commit bc0aee4212
2 changed files with 10 additions and 4 deletions

View File

@ -336,7 +336,7 @@ function charaFormatData(data) {
if (data.world) {
try {
const file = readWorldInfoFile(data.world);
const file = readWorldInfoFile(data.world, false);
// File was imported - save it to the character book
if (file && file.originalData) {