Skip to content

Commit

Permalink
Merge pull request #529 from TabooLib/dev/sky
Browse files Browse the repository at this point in the history
修复 StorableChest Rule 叠加错误
  • Loading branch information
Bkm016 authored Jan 6, 2025
2 parents 8cc3ab4 + 664a112 commit 86bb626
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import taboolib.platform.util.isNotAir
open class StorableChestImpl(title: String) : ChestImpl(title), StorableChest {

/** 页面规则 **/
val rule = RuleImpl
val rule = RuleImpl()

/**
* 定义页面规则
Expand Down Expand Up @@ -132,7 +132,7 @@ open class StorableChestImpl(title: String) : ChestImpl(title), StorableChest {
return super.build()
}

object RuleImpl : StorableChest.Rule {
class RuleImpl : StorableChest.Rule {

/** 检查判定位置回调 **/
var checkSlot: ((inventory: Inventory, itemStack: ItemStack, slot: Int) -> Boolean) = { _, _, _ -> true }
Expand Down

0 comments on commit 86bb626

Please sign in to comment.