Skip to content

Commit

Permalink
#issues/58
Browse files Browse the repository at this point in the history
修好了假人列表的id莫名其妙的问题
但说不准以后还会出问题
  • Loading branch information
xBoyMinemc committed Nov 5, 2024
1 parent be10083 commit 2987846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tscripts/xTerrain/plugins/youAreMine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ commandRegistry.registerCommand('假人时区', ({entity}) => {
// List
commandRegistry.registerCommand('假人列表', ({entity}) => {
if(Object.keys(SimulatedPlayerEnum).length===0) return entity.sendMessage('列表空的')
for (const index in SimulatedPlayerEnum) if (SimulatedPlayerEnum[index])
for (const index in SimulatedPlayerEnum) if (SimulatedPlayerEnum[index] && Number(index)>=0)
entity.sendMessage(`§e§l-序号:${index} ## 生成名称: ${SimulatedPlayerEnum[index].name}${SimulatedPlayerEnum[index].name===SimulatedPlayerEnum[index].nameTag?'':' #当前名称: '+SimulatedPlayerEnum[index].nameTag}`)
})

Expand Down

0 comments on commit 2987846

Please sign in to comment.