Skip to content

Commit

Permalink
Revert "Revert "fix(chatSpawn): 修复生成假人时会生成两次的问题""
Browse files Browse the repository at this point in the history
  • Loading branch information
xBoyMinemc authored Nov 5, 2024
1 parent 13c37cf commit 74c7909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tscripts/xTerrain/plugins/chatSpawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ commandRegistry.registerCommand('假人生成',withArgs)
const withArgs_xyz_name = ({args,entity}:commandInfo)=>{
let location: Vector3 = null
let nameTag : string = null
if(args[1]==='批量')return
if (args[1] === '批量' || args.length < 2) return

// xyz
if(args.length>=2 && args.length<=3)
Expand Down

0 comments on commit 74c7909

Please sign in to comment.