Skip to content

Commit

Permalink
Merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Jan 6, 2024
1 parent 028e61b commit 2ca76d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.willfp.libreforge.Dispatcher
import com.willfp.libreforge.Holder
import com.willfp.libreforge.HolderProvider
import com.willfp.libreforge.ItemProvidedHolder
import com.willfp.libreforge.ProvidedHolder
import com.willfp.libreforge.TypedHolderProvider
import com.willfp.libreforge.TypedProvidedHolder
import com.willfp.libreforge.get
Expand Down
5 changes: 5 additions & 0 deletions core/src/main/kotlin/com/willfp/libreforge/slot/SlotType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ abstract class SlotType(
*/
abstract fun getItems(entity: LivingEntity): List<ItemStack>

/**
* Exists for backwards compatibility.
*/
fun getItems(player: Player) = getItems(player as LivingEntity)

/**
* Get the slots that this slot type uses.
*/
Expand Down

0 comments on commit 2ca76d8

Please sign in to comment.