fix o.text.includes is not a function crash
This commit is contained in:
parent
4c03d68b03
commit
bbf8fbf4a5
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ export const formatMessage = (message: MessageInput, mcData: IndexedData = globa
|
|||
|
||||
msglist = msglist.map(msg => {
|
||||
// normalize §
|
||||
if (!msg.text.includes('§')) return msg
|
||||
if (!msg.text.includes?.('§')) return msg
|
||||
const newMsg = fromFormattedString(msg.text)
|
||||
return flat(newMsg)
|
||||
}).flat(Infinity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue