Skip to content

Commit 4bb7204

Browse files
committed
Improve Chinese tutorial code alignment
1 parent edafaa3 commit 4bb7204

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/Tutorial_zh.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ List<IntTag> _ = compoundTag.getAllTags(path).toList();
156156
IntTag _ = compoundTag.getFirstTag(path);
157157

158158
// 获取第一个匹配的 NBT Tag 的值
159-
int _ = compoundTag.getFirstInt(path); // 如果不存在则抛出 NoSuchElementException
160-
Integer _ = compoundTag.getFirstIntOrNull(path); // 如果不存在则返回 null
161-
int _ = compoundTag.getFirstIntOrDefault(path, 0); // 如果不存在则返回默认值
159+
int _ = compoundTag.getFirstInt(path); // 如果不存在则抛出 NoSuchElementException
160+
Integer _ = compoundTag.getFirstIntOrNull(path); // 如果不存在则返回 null
161+
int _ = compoundTag.getFirstIntOrDefault(path, 0); // 如果不存在则返回默认值
162162
```
163163

164164
## 读写 NBT 数据

0 commit comments

Comments
 (0)