From 07e8c096da2528a1b62e56204cf0825ae40704dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=B2=90=E5=91=80?= <163636894+zimuya4153@users.noreply.github.com> Date: Sat, 12 Oct 2024 11:54:14 +0800 Subject: [PATCH] feat: Modify PacketData type definition --- lib/GMLIB_API-JS.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/GMLIB_API-JS.d.ts b/lib/GMLIB_API-JS.d.ts index ebdbf5c..74586bb 100644 --- a/lib/GMLIB_API-JS.d.ts +++ b/lib/GMLIB_API-JS.d.ts @@ -1078,7 +1078,8 @@ type PacketDataItem = ( ); type PacketData = ( - { type: "Item", value: Item } + | { type: "", value: PacketData | PacketData[] } + | { type: "Item", value: Item } | { type: "CompoundTag", value: NbtCompound } | { type: "DataItem",