Fix bug in WFixedPanel and use WScrollPanel + WBox for config
This commit is contained in:
@@ -28,7 +28,8 @@ data class IsSlotProtectedEvent(
|
||||
) : FirmamentEvent() {
|
||||
companion object : FirmamentEventBus<IsSlotProtectedEvent>() {
|
||||
@JvmStatic
|
||||
fun shouldBlockInteraction(slot: Slot): Boolean {
|
||||
fun shouldBlockInteraction(slot: Slot?): Boolean {
|
||||
if (slot == null) return false
|
||||
return publish(IsSlotProtectedEvent(slot)).isProtected.also {
|
||||
if (it) {
|
||||
MC.player?.sendMessage(Text.translatable("firmament.protectitem").append(slot.stack.name))
|
||||
|
||||
Reference in New Issue
Block a user