Merge branch '1.21' into new-container-api
This commit is contained in:
commit
45a32dce3c
@ -74,10 +74,6 @@ open class MatteryMenuSlot(container: Container, index: Int, x: Int = 0, y: Int
|
||||
return super.mayPickup(player) && (!ignoreSpectators || !player.isSpectator)
|
||||
}
|
||||
|
||||
override fun mayPlace(itemStack: ItemStack): Boolean {
|
||||
return super.mayPlace(itemStack) && (!ignoreSpectators || runOnClient(true) { minecraft.player?.isSpectator != true })
|
||||
}
|
||||
|
||||
open fun canTakeItemForPickAll(): Boolean {
|
||||
return (container.containerSlotOrNull(slotIndex) as? IFilteredContainerSlot)?.filter == null
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user