Fix newlines in WI insertion

This commit is contained in:
SillyLossy
2023-02-25 23:28:50 +02:00
parent d33c08abd4
commit 6ad55a7fa5

View File

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