Storage: Fix example

Fixes #106
This commit is contained in:
rubenwardy 2021-02-21 04:26:49 +00:00
parent f1f051c3cb
commit 5e0399a7af
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ function backend.set_foo(key, value)
storage:set_string(key, minetest.serialize(value)) storage:set_string(key, minetest.serialize(value))
end end
function backend.get_foo(key, value) function backend.get_foo(key)
return minetest.deserialize(storage:get_string(key)) return minetest.deserialize(storage:get_string(key))
end end

View File

@ -168,7 +168,7 @@ function backend.set_foo(key, value)
memoria:set_string(key, minetest.serialize(value)) memoria:set_string(key, minetest.serialize(value))
end end
function backend.get_foo(key, value) function backend.get_foo(key)
return minetest.deserialize(memoria:get_string(key)) return minetest.deserialize(memoria:get_string(key))
end end