mirror of
https://github.com/Auxilor/EcoArmor.git
synced 2025-12-28 03:19:25 +00:00
Register recipes on a runnable
This commit is contained in:
@@ -268,12 +268,14 @@ class ArmorSet(
|
||||
val lore = metaLore.map { it.replace("%tier%", Tiers.defaultTier.displayName) }
|
||||
meta.lore = lore
|
||||
formattedOut.itemMeta = meta
|
||||
Recipes.createAndRegisterRecipe(
|
||||
plugin,
|
||||
id + "_" + slot.name.lowercase(Locale.getDefault()),
|
||||
formattedOut,
|
||||
slotConfig.getStrings("recipe")
|
||||
)
|
||||
plugin.scheduler.run {
|
||||
Recipes.createAndRegisterRecipe(
|
||||
plugin,
|
||||
id + "_" + slot.name.lowercase(Locale.getDefault()),
|
||||
formattedOut,
|
||||
slotConfig.getStrings("recipe")
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user