Suppressed most fixable warning.

This commit is contained in:
alexcrea 2024-04-28 19:58:36 +02:00
parent 91994a6e78
commit 3ff6505adf
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
22 changed files with 97 additions and 24 deletions

View file

@ -82,7 +82,7 @@ class EnchantConflictManager {
// Read and add enchantment to conflict
val enchantList = section.getStringList(ENCH_LIST_PATH)
for (enchantName in enchantList) {
val enchant = getEnchantByName(enchantName);
val enchant = getEnchantByName(enchantName)
if (enchant == null) {
if (!futureUse) {
CustomAnvil.instance.logger.warning("Enchantment $enchantName do not exist but was asked for conflict $conflictName")
@ -110,7 +110,7 @@ class EnchantConflictManager {
}
val enchantKey = NamespacedKey.minecraft(enchantName)
return Enchantment.getByKey(enchantKey);
return Enchantment.getByKey(enchantKey)
}