Skip to content

Commit 676fb43

Browse files
committed
fix(engine): Correct sdk message
1 parent d4b6b57 commit 676fb43

File tree

1 file changed

+4
-2
lines changed
  • engine/modules/entities/src/main/resources/view/entity-module

1 file changed

+4
-2
lines changed

engine/modules/entities/src/main/resources/view/entity-module/properties.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ export const PROPERTIES = {
105105
let res = ''
106106
let prevIdx = 0
107107
while (match) {
108-
res += value.substring(prevIdx, match.index)
109-
res += globalData.players[+match[1]].name
108+
if (match[1] < globalData.players.length) {
109+
res += value.substring(prevIdx, match.index)
110+
res += globalData.players[+match[1]].name
111+
}
110112
prevIdx = match.index + match[0].length
111113
match = regexp.exec(value)
112114
}

0 commit comments

Comments
 (0)