mirror of
https://github.com/HybridDog/we_undo.git
synced 2024-12-12 17:13:16 +01:00
Revert "Add a few assertions for debugging"
This reverts commit 54a864cfa49de8c823c71d9a083df4d715136c87.
This commit is contained in:
parent
ee88f6603f
commit
d57dda8b18
12
init.lua
12
init.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user