Skip to content

Commit

Permalink
2.6.2 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
LOOHP committed Jul 5, 2020
1 parent 586cba6 commit de825bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/com/loohp/interactivechat/Utils/ChatComponentUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,15 @@ public static boolean areSimilarNoEvents(BaseComponent base1, BaseComponent base
}

public static boolean areFontsSimilar(BaseComponent base1, BaseComponent base2) {
if ((base1.getFontRaw() == null && base2.getFontRaw() != null) || (base1.getFontRaw() != null && base2.getFontRaw() == null)) {
return false;
}
if (base1.getFontRaw() != null && base2.getFontRaw() != null) {
if (!base1.getFontRaw().equals(base2.getFontRaw())) {
if (InteractiveChat.version.isPost1_16()) {
if ((base1.getFontRaw() == null && base2.getFontRaw() != null) || (base1.getFontRaw() != null && base2.getFontRaw() == null)) {
return false;
}
if (base1.getFontRaw() != null && base2.getFontRaw() != null) {
if (!base1.getFontRaw().equals(base2.getFontRaw())) {
return false;
}
}
}
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: InteractiveChat
author: loohp
version: 2.6.1
version: 2.6.2
main: com.loohp.interactivechat.InteractiveChat
api-version: 1.13
description: Make the chat interactive
Expand Down

0 comments on commit de825bd

Please sign in to comment.