Skip to content

Commit

Permalink
Merge pull request #64 from xBoyMinemc/revert-62-revert-61-fix-unexpe…
Browse files Browse the repository at this point in the history
…cted-spawn

Revert "Revert "fix(chatSpawn): 修复生成假人时会生成两次的问题""
  • Loading branch information
xBoyMinemc authored Nov 5, 2024
2 parents 13c37cf + 74c7909 commit 70ca089
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 70ca089

Please sign in to comment.