diff --git a/lib/factorio/server.js b/lib/factorio/server.js index 028ee217..d2934d9f 100644 --- a/lib/factorio/server.js +++ b/lib/factorio/server.js @@ -505,7 +505,9 @@ class FactorioServer extends events.EventEmitter { throw new Error(`Unknown IPC type '${type}'`); } - this.emit(`ipc-${channel}`, content); + if (!this.emit(`ipc-${channel}`, content)) { + console.warn(`Warning: Unhandled ipc-${channel}`, content); + } } _handleOutput(line, source) {