Comment out read debuggery

This commit is contained in:
zontreck 2024-05-06 01:20:38 -07:00
parent b359400c83
commit 5d9c201e54

View file

@ -10,24 +10,24 @@ class CompoundTag extends Tag {
void readValue(ByteLayer data) { void readValue(ByteLayer data) {
value.clear(); value.clear();
NBTAccountant.visitTag(); //NBTAccountant.visitTag();
NBTAccountant.printRead(this); //NBTAccountant.printRead(this);
while (true) { while (true) {
Tag tag = Tag.readNamedTag(data); Tag tag = Tag.readNamedTag(data);
if (tag.getType() == 0) { if (tag.getType() == 0) {
NBTAccountant.leaveTag(this); //NBTAccountant.leaveTag(this);
return; return;
} }
put(tag.getKey(), tag); put(tag.getKey(), tag);
/*
if (tag.getTagType() != TagType.Compound && if (tag.getTagType() != TagType.Compound &&
tag.getTagType() != TagType.List) { tag.getTagType() != TagType.List) {
NBTAccountant.visitTag(); NBTAccountant.visitTag();
NBTAccountant.printRead(tag); NBTAccountant.printRead(tag);
NBTAccountant.leaveTag(tag); NBTAccountant.leaveTag(tag);
} }*/
} }
} }