Skip to content

Commit

Permalink
update to MythicMobs 5.7.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
CJCrafter committed Oct 13, 2024
1 parent bc1479f commit b81362e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import io.lumine.mythic.api.adapters.AbstractItemStack
import io.lumine.mythic.api.config.MythicLineConfig
import io.lumine.mythic.api.drops.DropMetadata
import io.lumine.mythic.api.drops.IItemDrop
import io.lumine.mythic.bukkit.adapters.BukkitItemStack
import io.lumine.mythic.bukkit.adapters.item.ItemComponentBukkitItemStack
import me.deecaad.core.utils.StringUtil

class MythicMobsArmorDrop(config: MythicLineConfig, argument: String?) : IItemDrop {
Expand All @@ -32,6 +32,6 @@ class MythicMobsArmorDrop(config: MythicLineConfig, argument: String?) : IItemDr

// Just in case MythicMobs edits this item, we want to use a clone
// to avoid possible modification.
return BukkitItemStack(item!!.clone())
return ItemComponentBukkitItemStack(item!!.clone())
}
}

0 comments on commit b81362e

Please sign in to comment.