Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.
This reverts commit a9be52c41a.
This commit is contained in:
@@ -52,11 +52,11 @@ CompoundTag *NbtIo::read(DataInput *dis)
|
||||
{
|
||||
Tag *tag = Tag::readNamedTag(dis);
|
||||
|
||||
if( tag->getId() == Tag::TAG_Compound ) return static_cast<CompoundTag *>(tag);
|
||||
if( tag->getId() == Tag::TAG_Compound ) return (CompoundTag *)tag;
|
||||
|
||||
if(tag!=nullptr) delete tag;
|
||||
if(tag!=NULL) delete tag;
|
||||
// Root tag must be a named compound tag
|
||||
return nullptr;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void NbtIo::write(CompoundTag *tag, DataOutput *dos)
|
||||
|
||||
Reference in New Issue
Block a user