diff --git a/core/src/main/kotlin/com/willfp/libreforge/slot/ItemHolderFinder.kt b/core/src/main/kotlin/com/willfp/libreforge/slot/ItemHolderFinder.kt index 53b29217..a39aecf8 100644 --- a/core/src/main/kotlin/com/willfp/libreforge/slot/ItemHolderFinder.kt +++ b/core/src/main/kotlin/com/willfp/libreforge/slot/ItemHolderFinder.kt @@ -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 diff --git a/core/src/main/kotlin/com/willfp/libreforge/slot/SlotType.kt b/core/src/main/kotlin/com/willfp/libreforge/slot/SlotType.kt index 08ddbaaa..c8ceec63 100644 --- a/core/src/main/kotlin/com/willfp/libreforge/slot/SlotType.kt +++ b/core/src/main/kotlin/com/willfp/libreforge/slot/SlotType.kt @@ -18,6 +18,11 @@ abstract class SlotType( */ abstract fun getItems(entity: LivingEntity): List + /** + * Exists for backwards compatibility. + */ + fun getItems(player: Player) = getItems(player as LivingEntity) + /** * Get the slots that this slot type uses. */