Skip to content

Commit

Permalink
Updated ReforgesDisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Oct 4, 2021
1 parent d1ccd06 commit d724459
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@ class ReforgesDisplay(private val plugin: ReforgesPlugin) : DisplayModule(plugin
}

override fun revert(itemStack: ItemStack) {
val target = ReforgeTarget.getForItem(itemStack)

if (target == null && itemStack.type != Material.PLAYER_HEAD) {
return
}
ReforgeTarget.getForItem(itemStack) ?: return

val meta = itemStack.itemMeta ?: return

Expand Down

0 comments on commit d724459

Please sign in to comment.