From a46ad28499f3af9fdfadbdf0f8145f5c73cbf5a4 Mon Sep 17 00:00:00 2001 From: DankParrot Date: Wed, 12 Aug 2020 18:17:47 -0700 Subject: [PATCH] NBT: Add CompoundTag::GetCompound --- src/nbt/NBT.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nbt/NBT.h b/src/nbt/NBT.h index 298593d..a925798 100644 --- a/src/nbt/NBT.h +++ b/src/nbt/NBT.h @@ -143,6 +143,8 @@ namespace NBT template const T Get(const char* name) const; + inline const CompoundTag GetCompound(const char* name) const { return Get(name); } + const Tag operator[](const char* name) const; };