Erase the mod storage key correctly.

master
red-001 2018-02-20 00:58:14 +00:00
parent 4a7833f700
commit fea69b3d94
No known key found for this signature in database
GPG Key ID: 0CBE03CD90F44222
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ elseif block_type == "activation" then
log_block(name, ip, info.isp, info.api, true)
minetest.kick_player(name, create_reject_message(ip, info.isp))
else
mod_storage:set_int(name, 0) -- there doesn't seem to be a function to erase a key?
mod_storage:set_string(name, "") -- only way to erase a mod storage key
end
end)
end