Skip to content

Commit 30c372d

Browse files
committed
docs: fix return value of CompoundTag::setTag
1 parent af05127 commit 30c372d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/apis/NbtAPI/NBTCompound.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ Possible return values ​​are: `NBT.End` `NBT.Byte` `NBT.Short` `NBT.Int` `NB
116116
- tag: `NBT Object`
117117
NBT object to be written (it carries specific NBT data).
118118
The write data type must be the same as the data type stored in the value corresponding to the key, and the key name may not exist.
119-
- Return value: Whether the write was successful or not.
120-
- Return value type: `Boolean`
119+
- Return value: CompoundTag itself.
120+
- Return value type: `NBTCompound`
121121

122122

123123

docs/apis/NbtAPI/NBTCompound.zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ local nbt = NbtCompound({
116116
- tag: `NBT对象`
117117
要写入的 NBT 对象(它承载着具体的NBT数据)
118118
写入数据类型必须和键对应的值储存的数据类型一致,键名可以不存在
119-
- 返回值:是否成功写入
120-
- 返回值类型:`Boolean`
119+
- 返回值:CompoundTag自身
120+
- 返回值类型:`NBTCompound`
121121

122122

123123

0 commit comments

Comments
 (0)