Skip to content

Commit

Permalink
Merge branch 'Auxilor:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
LangZongz authored Dec 21, 2023
2 parents 7876fb5 + 4f8dd08 commit b2e0741
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ object LegacyEnchantmentRegisterer : EnchantmentRegisterer {
}

override fun register(enchant: EcoEnchantBase): Enchantment {
// Allow registering new enchantments
Enchantment::class.java.getDeclaredField("acceptingNew")
.apply {
isAccessible = true
set(null, true)
}

val enchantment = LegacyDelegatedEnchantment(enchant)

Enchantment.registerEnchantment(enchantment)
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#libreforge-updater
#Sun Dec 03 16:00:06 GMT 2023
#Wed Dec 20 15:56:45 GMT 2023
kotlin.code.style=official
libreforge-version=4.49.2
version=11.0.4
libreforge-version=4.50.0
version=11.1.0

0 comments on commit b2e0741

Please sign in to comment.