mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-21 14:55:17 +01:00
Fixed enchantment guis not updating on reload
This commit is contained in:
parent
42e7fae0dc
commit
832079a493
@ -40,6 +40,9 @@ object EnchantGUI {
|
||||
private val enchantInfoMenus = Caffeine.newBuilder().build<EcoEnchant, Menu>()
|
||||
|
||||
internal fun reload(plugin: EcoEnchantsPlugin) {
|
||||
cachedEnchantmentSlots.invalidateAll()
|
||||
enchantInfoMenus.invalidateAll()
|
||||
|
||||
menu = menu(plugin.configYml.getInt("enchant-gui.rows")) {
|
||||
title = plugin.configYml.getFormattedString("enchant-gui.title")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user