diff --git a/common/src/main/java/net/draycia/carbon/common/channels/CarbonChannelRegistry.java b/common/src/main/java/net/draycia/carbon/common/channels/CarbonChannelRegistry.java index 07e5ce71..4dfe0640 100644 --- a/common/src/main/java/net/draycia/carbon/common/channels/CarbonChannelRegistry.java +++ b/common/src/main/java/net/draycia/carbon/common/channels/CarbonChannelRegistry.java @@ -175,7 +175,12 @@ public class CarbonChannelRegistry implements ChannelRegistry, DefaultedRegistry final @Nullable ChatChannel chatChannel = this.registerChannelFromPath(path); - if (chatChannel != null && chatChannel.shouldRegisterCommands()) { + if (chatChannel == null) { + this.logger.warn("Failed to load channel from file [" + fileName + "]"); + return; + } + + if (chatChannel.shouldRegisterCommands()) { this.registerChannelCommands(chatChannel, commandManager); } });