diff --git a/src/nbt/NBT.cpp b/src/nbt/NBT.cpp index c10d727..554d061 100644 --- a/src/nbt/NBT.cpp +++ b/src/nbt/NBT.cpp @@ -36,7 +36,7 @@ namespace NBT { // In C, the type could have been 'const struct nbt_list' // but in C++ we have to use this monstrosity because of anonymous innter structs - return list_entry(item, const decltype(nbt_node::payload)::nbt_list, entry)->data; + return list_entry(item, nbt_node::nbt_payload::nbt_list, entry)->data; } DataBuffer::~DataBuffer()