diff --git a/mods/pclasses/init.lua b/mods/pclasses/init.lua index 3af28745..1a110620 100755 --- a/mods/pclasses/init.lua +++ b/mods/pclasses/init.lua @@ -49,7 +49,7 @@ end local function save_datas() local pfile = io.open(pclasses.conf.datafile, "w") pfile:write(minetest.serialize(pclasses.datas.players)) - pfile.close() + pfile:close() minetest.log("action", "[PClasses] Datas saved") end