From adafd0d9963b60f31a5b31a435129fca5b544050 Mon Sep 17 00:00:00 2001 From: f3d0ss Date: Thu, 10 Nov 2022 21:57:16 +0100 Subject: [PATCH] fix(#31): fix mcl compatibility crash --- api/api.lua | 2 +- api/behaviors.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api.lua b/api/api.lua index 7d5cffd..a74fa68 100644 --- a/api/api.lua +++ b/api/api.lua @@ -109,7 +109,7 @@ if minetest.get_modpath("default") and minetest.get_modpath("player_api") then animate_player = player_api.set_animation elseif minetest.get_modpath("mcl_player") then - animate_player = mcl_player.set_animation + animate_player = mcl_player.player_set_animation end ----------------------- diff --git a/api/behaviors.lua b/api/behaviors.lua index d711cd9..f065b69 100644 --- a/api/behaviors.lua +++ b/api/behaviors.lua @@ -73,7 +73,7 @@ if minetest.get_modpath("default") and minetest.get_modpath("player_api") then animate_player = player_api.set_animation elseif minetest.get_modpath("mcl_player") then - animate_player = mcl_player.set_animation + animate_player = mcl_player.player_set_animation end local get_collision = creatura.get_collision