twoolie / NBT

Python Parser/Writer for the NBT file format, and it's container the RegionFile.
MIT License
362 stars 74 forks source link

Add type check when initializing tags #137

Open TowardtheStars opened 4 years ago

TowardtheStars commented 4 years ago

As said in title, we should check whether an integer was conveyed to an nbt.TAG_Int or not, and so should we check for TAG_String, TAG_Byte, TAG_Short, TAG_Long, TAG_Float, TAG_Double, TAG_Byte_Array, TAG_Int_Array, TAG_Int_Array. This could surly help developers debugging