diff --git a/init.lua b/init.lua index 1877f11..35906af 100644 --- a/init.lua +++ b/init.lua @@ -3046,7 +3046,7 @@ local function save_data(player_name) if not META_SAVES[dat] then _pdata[name][dat] = nil - if player_name then + if player_name and pdata[player_name] then pdata[player_name][dat] = nil -- To free up some memory end end