diff --git a/mods/default/legacy.lua b/mods/default/legacy.lua index a8c8ad5..649a1cf 100644 --- a/mods/default/legacy.lua +++ b/mods/default/legacy.lua @@ -23,3 +23,22 @@ LIGHT_MAX = default.LIGHT_MAX -- Formspecs default.gui_suvival_form = default.gui_survival_form + +-- Players +if minetest.get_modpath("player_api") then + default.registered_player_models = player_api.registered_models + default.player_register_model = player_api.register_model + default.player_attached = player_api.player_attached + default.player_get_animation = player_api.get_animation + default.player_set_model = player_api.set_model + default.player_set_textures = player_api.set_textures + default.player_set_animation = player_api.set_animation +--else +-- player_api.registered_models = default.registered_player_models +-- player_api.register_model= default.player_register_model +-- player_api.player_attached = default.player_attached +-- player_api.get_animation = default.player_get_animation +-- player_api.set_model = default.player_set_mode +-- player_api.set_textures = default.player_set_textures +-- player_api.set_animation = default.player_set_animation +end