mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-24 00:26:16 +02:00
Fix 1.21 config being wrong:
fix 1.21 config updater and automatically repair previously broken config version: - Allow 1.21 enchantment in enchantment book - Add unit repair of mace with breeze rod Also version up
This commit is contained in:
parent
14fd247b0b
commit
f4f467f6fe
10 changed files with 173 additions and 16 deletions
|
|
@ -16,6 +16,7 @@ import xyz.alexcrea.cuanvil.gui.util.GuiSharedConstant
|
|||
import xyz.alexcrea.cuanvil.listener.ChatEventListener
|
||||
import xyz.alexcrea.cuanvil.update.PluginSetDefault
|
||||
import xyz.alexcrea.cuanvil.update.Update_1_21
|
||||
import xyz.alexcrea.cuanvil.update.plugin.PluginUpdates
|
||||
import xyz.alexcrea.cuanvil.util.Metrics
|
||||
import java.io.File
|
||||
import java.io.FileReader
|
||||
|
|
@ -136,6 +137,9 @@ class CustomAnvil : JavaPlugin() {
|
|||
// temporary: handle 1.21 update
|
||||
Update_1_21.handleUpdate()
|
||||
|
||||
// plugin configuration updates
|
||||
PluginUpdates.handlePluginUpdate()
|
||||
|
||||
// Register enchantment of compatible plugin and load configuration change.
|
||||
DependencyManager.handleCompatibilityConfig()
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ object PacketManagerSelector {
|
|||
NoPacketManager()
|
||||
private val versionSpecificManager: PacketManagerBase?
|
||||
get() {
|
||||
val versionParts = UpdateUtils.currentMinecraftVersion()
|
||||
val versionParts = UpdateUtils.currentMinecraftVersionArray()
|
||||
if (versionParts[0] != 1) return null
|
||||
|
||||
return when (versionParts[1]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue