diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-01 08:42:43 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-01 08:42:43 +0700 |
commit | 04363f543d136bd43f82d28ff569ae4522fba37a (patch) | |
tree | feb98ee80beb8c143310634c3e57f5e8b013d94a /src/main/java | |
parent | b8aa42e5564714a4fbf611ccae42ed3b6905405c (diff) | |
download | Chatting-04363f543d136bd43f82d28ff569ae4522fba37a.tar.gz Chatting-04363f543d136bd43f82d28ff569ae4522fba37a.tar.bz2 Chatting-04363f543d136bd43f82d28ff569ae4522fba37a.zip |
make prefix property not required
add lowercase property
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/cc/woverflow/chatting/mixin/EntityPlayerSPMixin.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/cc/woverflow/chatting/mixin/EntityPlayerSPMixin.java b/src/main/java/cc/woverflow/chatting/mixin/EntityPlayerSPMixin.java index 42c5579..2c19b0f 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/EntityPlayerSPMixin.java +++ b/src/main/java/cc/woverflow/chatting/mixin/EntityPlayerSPMixin.java @@ -12,7 +12,7 @@ public class EntityPlayerSPMixin { @ModifyVariable(method = "sendChatMessage", at = @At("HEAD"), ordinal = 0, argsOnly = true) private String handleSentMessages(String value) { if (value.startsWith("/")) return value; - if (ChattingConfig.INSTANCE.getChatTabs() && ChatTabs.INSTANCE.getCurrentTab() != null && !ChatTabs.INSTANCE.getCurrentTab().getPrefix().isEmpty()) { + if (ChattingConfig.INSTANCE.getChatTabs() && ChatTabs.INSTANCE.getCurrentTab() != null && ChatTabs.INSTANCE.getCurrentTab().getPrefix() != null && !ChatTabs.INSTANCE.getCurrentTab().getPrefix().isEmpty()) { return ChatTabs.INSTANCE.getCurrentTab().getPrefix() + value; } else { return value; |