Skip to content

Commit 927f4d2

Browse files
committed
fix bug
1 parent 4c01ab6 commit 927f4d2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"win": "2.2074",
55
"android": "2.2074"
66
},
7-
"version": "v1.1.6",
7+
"version": "v1.1.7",
88
"id": "alphalaneous.editorsounds",
99
"name": "Editor Sounds",
1010
"developer": "Alphalaneous",

src/main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ int random(int min, int max) {
2020
class $modify(MyEditorUI, EditorUI) {
2121

2222
static void onModify(auto& self) {
23-
(void) self.setHookPriority("EditorUI::moveForCommand", INT_MIN);
23+
(void) self.setHookPriority("EditorUI::moveForCommand", -1000);
2424
}
2525

2626
struct Fields {
@@ -190,7 +190,9 @@ class $modify(MyEditorUI, EditorUI) {
190190
case EditCommand::BigRight:
191191
playSoundIfExists("move_5.ogg"_spr);
192192
break;
193-
default: break;
193+
default:
194+
playSoundIfExists("move_2.ogg"_spr);
195+
break;
194196
}
195197

196198
return ret;

0 commit comments

Comments
 (0)