Skip to content

Commit f1ca39b

Browse files
committed
fix tsc, cleanup
1 parent dc05144 commit f1ca39b

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

src/appConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export type AppConfig = {
5858
skinTexturesProxy?: string
5959
alwaysReconnectButton?: boolean
6060
reportBugButtonWithReconnect?: boolean
61-
disabledCommands?: string[] // Array of command IDs to disable (e.g. ['general.jump', 'general.chat'])
61+
disabledCommands?: string[] // Array of command IDs to disable (e.g. ['movement.jump', 'general.chat'])
6262
}
6363

6464
export const loadAppConfig = (appConfig: AppConfig) => {

src/react/MinimapProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ export default ({ adapter, displayMode }: { adapter: DrawerAdapterImpl, displayM
567567
const fullMapOpened = useIsModalActive('full-map')
568568

569569
const toggleFullMap = () => {
570-
void contro.emit('trigger', { command: 'ui.toggleMap', schema: null as any })
570+
void contro.emit('trigger', { command: 'ui.toggleMap' })
571571
}
572572

573573
if (

src/react/TouchAreasControls.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ export default ({ setupActive, closeButtonsSetup, foregroundGameActive }: Props)
8383
},
8484
sneak () {
8585
void contro.emit('trigger', {
86-
command: 'general.toggleSneakOrDown',
87-
schema: null as any,
86+
command: 'movement.toggleSneakOrDown',
8887
})
8988
active = bot?.getControlState('sneak')
9089
},
@@ -96,8 +95,7 @@ export default ({ setupActive, closeButtonsSetup, foregroundGameActive }: Props)
9695
},
9796
jump () {
9897
void contro.emit('trigger', {
99-
command: 'general.jump',
100-
schema: null as any,
98+
command: 'movement.jump',
10199
})
102100
active = bot?.controlState.jump
103101
}
@@ -108,8 +106,7 @@ export default ({ setupActive, closeButtonsSetup, foregroundGameActive }: Props)
108106
},
109107
sneak () {
110108
void contro.emit('release', {
111-
command: 'general.toggleSneakOrDown',
112-
schema: null as any,
109+
command: 'movement.toggleSneakOrDown',
113110
})
114111
active = bot?.getControlState('sneak')
115112
},
@@ -121,8 +118,7 @@ export default ({ setupActive, closeButtonsSetup, foregroundGameActive }: Props)
121118
},
122119
jump () {
123120
void contro.emit('release', {
124-
command: 'general.jump',
125-
schema: null as any,
121+
command: 'movement.jump',
126122
})
127123
active = bot?.controlState.jump
128124
}

0 commit comments

Comments
 (0)