Fixed issue about level in fusing.

when fusing item with enchant above level limit there was some strange uncapped cases.
Also fix a typo.
This commit is contained in:
alexcrea 2024-04-28 04:24:11 +02:00
parent 32b535efda
commit adaba63d5e
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
2 changed files with 18 additions and 19 deletions

View file

@ -102,7 +102,7 @@ class EnchantConflictManager {
private fun getEnchantByName(enchantName: String): Enchantment? {
// Teporary solution for 1.20.5
// Temporary solution for 1.20.5
when(enchantName){
"sweeping", "sweeping_edge" -> {
return SWEEPING_EDGE_ENCHANT