Merge pull request #1619 from LenAnderson/worldinfo_updated-event

Add event when world info is updated
This commit is contained in:
Cohee
2024-01-01 18:35:23 +02:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -1420,6 +1420,7 @@ async function _save(name, data) {
headers: getRequestHeaders(),
body: JSON.stringify({ name: name, data: data }),
});
eventSource.emit(event_types.WORLDINFO_UPDATED, name, data);
}
async function saveWorldInfo(name, data, immediately) {