We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4b6b57 commit 676fb43Copy full SHA for 676fb43
engine/modules/entities/src/main/resources/view/entity-module/properties.js
@@ -105,8 +105,10 @@ export const PROPERTIES = {
105
let res = ''
106
let prevIdx = 0
107
while (match) {
108
- res += value.substring(prevIdx, match.index)
109
- res += globalData.players[+match[1]].name
+ if (match[1] < globalData.players.length) {
+ res += value.substring(prevIdx, match.index)
110
+ res += globalData.players[+match[1]].name
111
+ }
112
prevIdx = match.index + match[0].length
113
match = regexp.exec(value)
114
}
0 commit comments