aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/woverflow
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-01 08:42:43 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-01 08:42:43 +0700
commit04363f543d136bd43f82d28ff569ae4522fba37a (patch)
treefeb98ee80beb8c143310634c3e57f5e8b013d94a /src/main/java/cc/woverflow
parentb8aa42e5564714a4fbf611ccae42ed3b6905405c (diff)
downloadChatting-04363f543d136bd43f82d28ff569ae4522fba37a.tar.gz
Chatting-04363f543d136bd43f82d28ff569ae4522fba37a.tar.bz2
Chatting-04363f543d136bd43f82d28ff569ae4522fba37a.zip
make prefix property not required
add lowercase property
Diffstat (limited to 'src/main/java/cc/woverflow')
-rw-r--r--src/main/java/cc/woverflow/chatting/mixin/EntityPlayerSPMixin.java2
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;