Use proper quickChat boolean check.

This commit is contained in:
Aust1n46 2021-08-02 12:59:25 -04:00
parent b05ce441f0
commit 7570d42355

View File

@ -25,7 +25,7 @@ public class VentureChatPlaceholders extends PlaceholderExpansion {
return "value for that identifier *"; return "value for that identifier *";
} }
if (identifier.startsWith("channel_")) { if (identifier.startsWith("channel_")) {
ChatChannel currentChannel = mcp.hasQuickChannel() ? mcp.getQuickChannel() : mcp.getCurrentChannel(); ChatChannel currentChannel = mcp.isQuickChat() ? mcp.getQuickChannel() : mcp.getCurrentChannel();
if (currentChannel == null) { if (currentChannel == null) {
return ""; return "";
} }