Skip to content

Commit

Permalink
wm 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CJCrafter committed Feb 26, 2024
1 parent f1831a9 commit 8f5c694
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

group = "com.cjcrafter"
version = "3.0.2"
version = "3.0.3"

plugins {
`java-library`
Expand Down Expand Up @@ -35,8 +35,8 @@ dependencies {

compileOnly("org.spigotmc:spigot-api:1.20.4-R0.1-SNAPSHOT")
compileOnly("io.lumine:Mythic-Dist:5.3.5")
compileOnly("com.cjcrafter:mechanicscore:3.2.5")
compileOnly("com.cjcrafter:weaponmechanics:3.2.6")
compileOnly("com.cjcrafter:mechanicscore:3.3.0")
compileOnly("com.cjcrafter:weaponmechanics:3.3.0")
}

tasks.shadowJar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ object Command {
// Since we want to ignore spelling/capitalization errors, we should
// make sure the given 'title' matches to an actual armor-title.
var title = title
val startsWith: MutableList<String?> = ArrayList()
val startsWith: MutableList<String> = ArrayList()
val options: Set<String> = ArmorMechanics.INSTANCE.armors.keys
for (temp in options) {
if (temp.lowercase().startsWith(title!!.lowercase())) startsWith.add(title)
if (temp.lowercase().startsWith(title.lowercase())) startsWith.add(title)
}
title = StringUtil.didYouMean(title, if (startsWith.isEmpty()) options else startsWith)
val armor = ArmorMechanics.INSTANCE.armors[title]
Expand Down

0 comments on commit 8f5c694

Please sign in to comment.