mirror of
https://github.com/minetest-mods/i3.git
synced 2025-09-08 09:45:37 +02:00
Fix potential crash in Progressive Mode
This commit is contained in:
2
init.lua
2
init.lua
@@ -3046,7 +3046,7 @@ local function save_data(player_name)
|
|||||||
if not META_SAVES[dat] then
|
if not META_SAVES[dat] then
|
||||||
_pdata[name][dat] = nil
|
_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
|
pdata[player_name][dat] = nil -- To free up some memory
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user