Skip to content

Commit

Permalink
fix: block clicks on correct all panes is inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Jan 19, 2024
1 parent 87f393a commit 409ac4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ object TerminalFeatures {
fun onSlotClickHigh(event: SlotClickEvent) {
if (!Utils.inDungeons || !Skytils.config.blockIncorrectTerminalClicks || event.container !is ContainerChest) return
if (event.chestName == "Correct all the panes!") {
if (event.slot?.stack?.displayName?.stripControlCodes()?.startsWith("Off") == true) {
if (event.slot?.stack?.displayName?.stripControlCodes()?.startsWith("On") == true) {
event.isCanceled = true
}
}
Expand Down

0 comments on commit 409ac4d

Please sign in to comment.