This commit is contained in:
Vitaly 2024-01-10 06:20:34 +05:30
commit 2bbacf23ad
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ import MessageFormatted from './MessageFormatted'
import Button from './Button'
type Props = {
dieReasonMessage: readonly MessageFormatPart[]
dieReasonMessage: MessageFormatPart[]
respawnCallback: () => void
disconnectCallback: () => void
}

View file

@ -56,7 +56,7 @@ export default () => {
if (!isModalActive || !dieReasonMessage || options.autoRespawn) return null
return <DeathScreen
dieReasonMessage={dieReasonMessage}
dieReasonMessage={dieReasonMessage as MessageFormatPart[]}
respawnCallback={() => {
bot._client.write('client_command', bot.supportFeature('respawnIsPayload') ? { payload: 0 } : { actionId: 0 })
}}