mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Fix mcl_craftguide completely
This commit is contained in:
parent
1fda78667f
commit
02777b1f65
1 changed files with 3 additions and 5 deletions
|
@ -1108,15 +1108,13 @@ if progressive_mode then
|
||||||
local meta = player:get_meta()
|
local meta = player:get_meta()
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local data = player_data[name]
|
local data = player_data[name]
|
||||||
local inv_items = data.inv_items
|
|
||||||
if not inv_items then
|
|
||||||
inv_items = {}
|
|
||||||
end
|
|
||||||
|
|
||||||
if not data or not data.inv_items then
|
if not data then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local inv_items = data.inv_items or {}
|
||||||
|
|
||||||
meta:set_string("inv_items", serialize(inv_items))
|
meta:set_string("inv_items", serialize(inv_items))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue