diff --git a/src/main/java/autumn_2023/module/comm/CentralizedControlChannelSubscriber.java b/src/main/java/autumn_2023/module/comm/CentralizedControlChannelSubscriber.java index e945e7ba5a94e9fb96188a5b8556d0fcca78cf68..9a9b05e96651d480e3b419a0decc3c0a1551a022 100644 --- a/src/main/java/autumn_2023/module/comm/CentralizedControlChannelSubscriber.java +++ b/src/main/java/autumn_2023/module/comm/CentralizedControlChannelSubscriber.java @@ -13,7 +13,7 @@ public class CentralizedControlChannelSubscriber extends ChannelSubscriber { public void subscribe(AgentInfo agentInfo, WorldInfo worldInfo, ScenarioInfo scenarioInfo, MessageManager messageManager) { // subscribe only once at the beginning - if (agentInfo.getTime() == 1) { + if (agentInfo.getTime() == scenarioInfo.getKernelAgentsIgnoreuntil()) { int numChannels = scenarioInfo.getCommsChannelsCount() - 1; // 0th channel // is the // voice