Reverse append order of WI

This commit is contained in:
SillyLossy
2023-02-25 22:13:24 +02:00
parent 61b672f02e
commit d33c08abd4

View File

@@ -751,10 +751,10 @@
for (const entry of newEntries) {
if (entry.position === world_info_position.after) {
worldInfoAfter = `${worldInfoAfter}${entry.content}\n`;
worldInfoAfter = `${entry.content}${worldInfoAfter}\n`;
}
else {
worldInfoBefore = `${worldInfoBefore}${entry.content}\n`;
worldInfoBefore = `${entry.content}${worldInfoBefore}\n`;
}
if (encode(worldInfoBefore + worldInfoAfter).length >= world_info_budget) {