1.0.6 RC7

This commit is contained in:
phidias authored and GitHub committed 2026-10-13 02:23:53 +09:00
1 parent 410371870f
commit fdf9c678f7
1 file changed
+2 -1
+2 -1
View File
@@ -112,12 +112,13 @@ export default async function(context: InstancePluginContext) {
const message = sanitiseForFactorio(event.message);
if (!message) return;
const line = `[Discord] ${author}: ${message}`;
const line = `[DC] ${author}: ${message}`;
try {
// game.print reaches every player and does NOT fire on_console_chat,
// so this cannot echo back out through the outbound half.
await instance.sendRcon(`/sc game.print(${luaString(line)})`);
logger.info(`[Chat Relay] -> ${line}`);
} catch (err) {
if (!warnedPrintFail.has(instance.name)) {
warnedPrintFail.add(instance.name);