Skip to content
This repository was archived by the owner on Mar 22, 2026. It is now read-only.

Commit 79a4e60

Browse files
committed
[TouchController] 修复 1.21.11 版本物品子类失效的问题
1 parent 6ff5705 commit 79a4e60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

touchcontroller/versions/gal/item/1.21.11/ItemSubclassImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ItemSubclassImpl<Clazz>(
2626
) : ItemSubclass {
2727
override val id: String = clazz.simpleName
2828

29-
override fun contains(item: Item) = clazz.isInstance(item)
29+
override fun contains(item: Item) = clazz.isInstance(item.toVanilla())
3030

3131
override val items: PersistentList<Item> by lazy {
3232
ItemProviderImpl.allItems.filter { it in this }.toPersistentList()

0 commit comments

Comments
 (0)