mod creative - fix check for newer lang on engine, commit f757878

This commit is contained in:
mckaygerhard 2024-04-24 15:13:43 -04:00
parent 46ce26ded2
commit 10e85eb910

View File

@ -185,7 +185,7 @@ function creative.update_creative_inventory(player_name, tab_content)
local lang = minetest.settings:get("language") or "en" local lang = minetest.settings:get("language") or "en"
local player_info = minetest.get_player_information(player_name) local player_info = minetest.get_player_information(player_name)
if is_53 then if creative.is_53 then
if player_info and player_info.lang_code ~= "" then if player_info and player_info.lang_code ~= "" then
lang = player_info.lang_code lang = player_info.lang_code
end end