mirror of
https://github.com/minetest-mods/playeranim.git
synced 2025-01-08 17:00:26 +01:00
Replace deprecated 'setting_get' with 'settings:get' (#13)
This commit is contained in:
parent
0ca8e5a3aa
commit
59bcd385a1
2
init.lua
2
init.lua
@ -11,7 +11,7 @@ local valid_player_model_versions = {
|
|||||||
default_character_v2 = true,
|
default_character_v2 = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
local player_model_version = minetest.setting_get("player_model_version")
|
local player_model_version = minetest.settings:get("player_model_version")
|
||||||
if not player_model_version or player_model_version == "" then
|
if not player_model_version or player_model_version == "" then
|
||||||
player_model_version = "default_character_v2"
|
player_model_version = "default_character_v2"
|
||||||
elseif not valid_player_model_versions[player_model_version] then
|
elseif not valid_player_model_versions[player_model_version] then
|
||||||
|
Loading…
Reference in New Issue
Block a user