Skip to content

Commit

Permalink
docs: fix return value of CompoundTag::setTag
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Aug 25, 2024
1 parent af05127 commit 30c372d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/apis/NbtAPI/NBTCompound.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ Possible return values ​​are: `NBT.End` `NBT.Byte` `NBT.Short` `NBT.Int` `NB
- tag: `NBT Object`
NBT object to be written (it carries specific NBT data).
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.
- Return value: Whether the write was successful or not.
- Return value type: `Boolean`
- Return value: CompoundTag itself.
- Return value type: `NBTCompound`



Expand Down
4 changes: 2 additions & 2 deletions docs/apis/NbtAPI/NBTCompound.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ local nbt = NbtCompound({
- tag: `NBT对象`
要写入的 NBT 对象(它承载着具体的NBT数据)
写入数据类型必须和键对应的值储存的数据类型一致,键名可以不存在
- 返回值:是否成功写入
- 返回值类型:`Boolean`
- 返回值:CompoundTag自身
- 返回值类型:`NBTCompound`



Expand Down

0 comments on commit 30c372d

Please sign in to comment.