Revert "Add a few assertions for debugging"

This reverts commit 54a864cfa49de8c823c71d9a083df4d715136c87.
This commit is contained in:
HybridDog 2020-10-15 17:36:30 +02:00
parent ee88f6603f
commit d57dda8b18

@ -457,14 +457,6 @@ local function decompress_nodedata(ccontent)
-- get metaens strings
if ccontent.metaens_cnt then
result.metastrings = minetest.deserialize(data:sub(p))
if not result.metastrings then
print("Could not deserialize the metadata: " .. data:sub(p))
assert(false)
end
assert(#result.metastrings == ccontent.metaens_cnt,
"Invalid number of metadata changes; #result.metastrings: " ..
#result.metastrings .. ", ccontent.metaens_cnt: " ..
ccontent.metaens_cnt)
end
return result
end
@ -967,10 +959,6 @@ local function my_we_deserialize(pos_base, ...)
index_bytes = index_bytes,
compressed_data = compressed_data
}, command_invoker)
assert(#indices_n == #nodeids)
assert(#indices_p1 == #param1s)
assert(#indices_p2 == #param2s)
assert(#indices_m == #metastrings)
return count
end