mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +02:00
fix broken isInTag logic
This commit is contained in:
parent
3594cf72af
commit
809dc3488b
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ object AnvilColorUtil {
|
||||||
if (rightIndex == -1 || (newleftIndex != -1 && newleftIndex < rightIndex)) return false
|
if (rightIndex == -1 || (newleftIndex != -1 && newleftIndex < rightIndex)) return false
|
||||||
|
|
||||||
// Then finally we use minimessage to check for tag
|
// Then finally we use minimessage to check for tag
|
||||||
val expectedTag = builder.substring(leftIndex, newleftIndex + 1)
|
val expectedTag = builder.substring(leftIndex, newleftIndex + index + 1)
|
||||||
val notag = MiniMessageUtil.mm.stripTags(expectedTag)
|
val notag = MiniMessageUtil.mm.stripTags(expectedTag)
|
||||||
|
|
||||||
return notag != expectedTag
|
return notag != expectedTag
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue