aboutsummaryrefslogtreecommitdiff
path: root/src/nbt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/nbt.rs')
-rw-r--r--src/nbt.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nbt.rs b/src/nbt.rs
index 80c0977..528ce78 100644
--- a/src/nbt.rs
+++ b/src/nbt.rs
@@ -30,8 +30,11 @@ impl NamedTag {
impl TestRandom for NamedTag {
fn test_gen_random() -> Self {
Self {
- name: String::test_gen_random(),
- payload: Tag::test_gen_random(),
+ name: "".to_owned(),
+ payload: Tag::Compound(vec!(Self{
+ name: String::test_gen_random(),
+ payload: Tag::test_gen_random(),
+ })),
}
}
}