mirror of
https://github.com/HybridDog/we_undo.git
synced 2025-03-31 15:02:32 +02:00
Revert "Add a few assertions for debugging"
This reverts commit 54a864cfa49de8c823c71d9a083df4d715136c87.
This commit is contained in:
12
init.lua
12
init.lua
@ -457,14 +457,6 @@ local function decompress_nodedata(ccontent)
|
|||||||
-- get metaens strings
|
-- get metaens strings
|
||||||
if ccontent.metaens_cnt then
|
if ccontent.metaens_cnt then
|
||||||
result.metastrings = minetest.deserialize(data:sub(p))
|
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
|
end
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
@ -967,10 +959,6 @@ local function my_we_deserialize(pos_base, ...)
|
|||||||
index_bytes = index_bytes,
|
index_bytes = index_bytes,
|
||||||
compressed_data = compressed_data
|
compressed_data = compressed_data
|
||||||
}, command_invoker)
|
}, command_invoker)
|
||||||
assert(#indices_n == #nodeids)
|
|
||||||
assert(#indices_p1 == #param1s)
|
|
||||||
assert(#indices_p2 == #param2s)
|
|
||||||
assert(#indices_m == #metastrings)
|
|
||||||
|
|
||||||
return count
|
return count
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user