diff --git a/turtle.lua b/turtle.lua index 29e7cc0..0005d17 100644 --- a/turtle.lua +++ b/turtle.lua @@ -446,9 +446,11 @@ parallel.waitForAny( function() -- Command processing (eval protocol) + -- Uses Channels.match() for dual-mode safety: accepts messages on + -- both legacy (100) and target (4210) channels during migration. while true do local event, side, channel, replyChannel, message = os.pullEvent("modem_message") - if channel == CHANNEL_RECEIVE then + if Channels.match('remoteturtle.command', channel) then processMessage(channel, message) end end