Skip to content

Commit

Permalink
fix: Simon Says discards first click
Browse files Browse the repository at this point in the history
Hypixel seems to have sped up the device. One of their changes seems to cause a button reset after the first sea lantern is placed. This commit changes our detection to use when the sea lantern is changed back to obsidian, instead of when a block is changed to a sea lantern. This seems to happen after the buttons get removed, so it should fix the issue.
  • Loading branch information
My-Name-Is-Jeff committed Oct 30, 2024
1 parent 009a8a8 commit ffefa96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ object SimonSaysSolver {
if ((pos.y in 120..123) && pos.z in 92..95) {
if (pos.x == 111) {
printDevMessage("Block at $pos changed to ${state.block.localizedName} from ${old.block.localizedName}", "simon")
if (state.block === Blocks.sea_lantern) {
if (state.block === Blocks.obsidian && old.block === Blocks.sea_lantern) {
if (!clickInOrder.contains(pos)) {
clickInOrder.add(pos)
} else printDevMessage("Duplicate block at $pos", "simon")
Expand Down

0 comments on commit ffefa96

Please sign in to comment.