Skip to content

Commit

Permalink
fix: 🐛 japanize変換の状態が重複する不具合
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSheep2804 committed Jul 18, 2023
1 parent 90569df commit f3d71e9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ abstract class SeleneChatPlayer {
return HoverEvent.showEntity(HoverEvent.ShowEntity.of(Key.key("player"), uniqueId, Component.text(displayName)))
}
fun enableJapanize() {
if (this.isEnabledJapanize) return
SeleneChat.japanizePlayers.enable.add(uniqueId.toString())
SeleneChat.japanizePlayers.disable.remove(uniqueId.toString())
}
fun disableJapanize() {
if (!this.isEnabledJapanize) return
SeleneChat.japanizePlayers.disable.add(uniqueId.toString())
SeleneChat.japanizePlayers.enable.remove(uniqueId.toString())
}
Expand Down

0 comments on commit f3d71e9

Please sign in to comment.