summaryrefslogtreecommitdiffstats
path: root/converter/cNBTData.cpp
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-10-31 03:56:12 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-10-31 03:56:12 +0100
commit20d391764c9d6921a92d21f03805ad06a9574540 (patch)
treea58a4efe4f4ec3e852c358706a4683a3664ed705 /converter/cNBTData.cpp
parentMore changes to the denotch map converter. Added some tags. Still debugging some parsing issues. (diff)
downloadcuberite-20d391764c9d6921a92d21f03805ad06a9574540.tar
cuberite-20d391764c9d6921a92d21f03805ad06a9574540.tar.gz
cuberite-20d391764c9d6921a92d21f03805ad06a9574540.tar.bz2
cuberite-20d391764c9d6921a92d21f03805ad06a9574540.tar.lz
cuberite-20d391764c9d6921a92d21f03805ad06a9574540.tar.xz
cuberite-20d391764c9d6921a92d21f03805ad06a9574540.tar.zst
cuberite-20d391764c9d6921a92d21f03805ad06a9574540.zip
Diffstat (limited to '')
-rw-r--r--converter/cNBTData.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/converter/cNBTData.cpp b/converter/cNBTData.cpp
index ed655430b..0b40f3466 100644
--- a/converter/cNBTData.cpp
+++ b/converter/cNBTData.cpp
@@ -46,7 +46,7 @@ cNBTData::cNBTData( char* a_Buffer, unsigned int a_BufferSize )
tm = false; //tm to true will print more information for test mode
if (m_BufferSize == 82659) {
- tm = true;
+// tm = true;
}
m_CurrentCompound = this;
@@ -552,12 +552,26 @@ void cNBTData::ParseList( bool a_bNamed )
OpenList( Name );
for(int i = 0; i < Length && m_Index < m_BufferSize; i++)
{
+
+ if( (int)TagType == 6 ) {
+
+ cNBTData::ParseDouble( false );
+
+ } else if( (int)TagType == 5 ) {
+ cNBTData::ParseFloat( false );
+ } else
+
+
if( m_ParseFunctions[ TagType ] )
{
(*this.*m_ParseFunctions[ TagType ] )(false);
m_Index++;
}
}
+ if (tm) {
+ printf("List Done Name, tag, length: %s, %i, %i\n", Name.c_str(), (int)TagType, Length);
+ }
+
CloseList();
}