Commit dcb1feb
committed
Handle remapped button patch reversion and button release action separately.
We were previously using the `downButtons` to undo the patch, but since the logic had been (intentionally) changed to apply the patch even when not starting a continuous-activation cycle (i.e. due to `!Context.IsPlayerFree`), the patch wasn't always getting undone when the button was released.
The new logic checks both states separately, and undoes the patch if the button is physically up, regardless of whether it was tracked.
Also adds a custom activation action to end fishing, which seems to help with a few hard-to-identify edge cases where the default `pressToolButton` logic behaves oddly, either failing to clear the menu or doing a duplicate cast or "catching" the wrong fish/item.1 parent 149b46c commit dcb1feb
2 files changed
Lines changed: 19 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
72 | 74 | | |
73 | | - | |
74 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
75 | 84 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
0 commit comments