From 74c790919499a169b4317f371d5c69a5d3f7455a Mon Sep 17 00:00:00 2001 From: xBoyMinemc <86919167+xBoyMinemc@users.noreply.github.com> Date: Tue, 5 Nov 2024 17:08:48 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"Revert=20"fix(chatSpawn):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=94=9F=E6=88=90=E5=81=87=E4=BA=BA=E6=97=B6=E4=BC=9A?= =?UTF-8?q?=E7=94=9F=E6=88=90=E4=B8=A4=E6=AC=A1=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tscripts/xTerrain/plugins/chatSpawn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tscripts/xTerrain/plugins/chatSpawn.ts b/tscripts/xTerrain/plugins/chatSpawn.ts index ac6260f..af12fd0 100644 --- a/tscripts/xTerrain/plugins/chatSpawn.ts +++ b/tscripts/xTerrain/plugins/chatSpawn.ts @@ -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)