Added detection of mod player_api agains default
* use aliasing sustitution to use player_api when detected * backported those to legacy.lua
This commit is contained in:
parent
812bb323f6
commit
b6d93e76d3
@ -23,3 +23,22 @@ LIGHT_MAX = default.LIGHT_MAX
|
|||||||
|
|
||||||
-- Formspecs
|
-- Formspecs
|
||||||
default.gui_suvival_form = default.gui_survival_form
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user