mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
fix me being stupid
This commit is contained in:
parent
7f15e0eb55
commit
f02ac69928
2 changed files with 3 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ object DependencyManager {
|
|||
|
||||
enchantmentSquaredCompatibility?.stripLore(dummy)
|
||||
|
||||
val itemLore = item.itemMeta!!.lore
|
||||
val itemLore = dummy.itemMeta!!.lore
|
||||
if (itemLore != null) lore.addAll(itemLore)
|
||||
|
||||
return lore
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ object AnvilLoreEditUtil {
|
|||
val result = first.clone()
|
||||
val leftMeta = result.itemMeta ?: return null
|
||||
val currentLore: ArrayList<String> = DependencyManager.stripLore(result)
|
||||
if(currentLore.isEmpty()) return null
|
||||
|
||||
val uncolorCost = uncolorLines(player, currentLore, LoreEditType.REMOVE_BOOK)
|
||||
|
||||
|
|
@ -186,6 +187,7 @@ object AnvilLoreEditUtil {
|
|||
|
||||
val removeEnd = LoreEditConfigUtil.paperLoreOrderIsEnd
|
||||
val lore: ArrayList<String> = DependencyManager.stripLore(result)
|
||||
if(lore.isEmpty()) return null
|
||||
|
||||
val line = if (removeEnd) lore.removeAt(lore.size - 1)
|
||||
else lore.removeAt(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue