Properly disable clientside "Cancel all tasks" button in pattern screen when player is in creative
This commit is contained in:
parent
691fe66797
commit
61343b416f
@ -84,7 +84,10 @@ class MatterPanelScreen(
|
||||
{ menu.cancelAll.accept(null) }
|
||||
)
|
||||
}
|
||||
).also { it.tooltips.add(TranslatableComponent("otm.gui.matter_panel.cancel_all")) }
|
||||
).also {
|
||||
it.tooltips.add(TranslatableComponent("otm.gui.matter_panel.cancel_all"))
|
||||
it.isDisabled = !menu.cancelAll.test(minecraft!!.player!!)
|
||||
}
|
||||
)
|
||||
|
||||
val scrollBar = DiscreteScrollBarPanel(this, frame, {
|
||||
|
Loading…
Reference in New Issue
Block a user