diff --git a/src/engine/behavior_script.c b/src/engine/behavior_script.c index a9c827b77..054e773f4 100644 --- a/src/engine/behavior_script.c +++ b/src/engine/behavior_script.c @@ -1004,12 +1004,6 @@ static s32 bhv_cmd_call_native_ext(void) { gSmLuaConvertSuccess = true; LuaFunction funcRef = smlua_get_function_mod_variable(modIndex, funcStr); - - if (!gSmLuaConvertSuccess) { - gSmLuaConvertSuccess = true; - funcRef = smlua_get_any_function_mod_variable(funcStr); - } - if (!gSmLuaConvertSuccess || funcRef == 0) { LOG_LUA("Failed to call lua behavior function, could not find lua function '%s'", funcStr); gCurBhvCommand += 2; diff --git a/src/game/mario_misc.c b/src/game/mario_misc.c index b60cac7c7..08f18ffb1 100644 --- a/src/game/mario_misc.c +++ b/src/game/mario_misc.c @@ -890,10 +890,6 @@ Gfx *geo_process_lua_function(s32 callContext, struct GraphNode *node, UNUSED Ma // Retrieve function ref gSmLuaConvertSuccess = true; LuaFunction funcRef = smlua_get_function_mod_variable(modIndex, funcStr); - if (!gSmLuaConvertSuccess) { - gSmLuaConvertSuccess = true; - funcRef = smlua_get_any_function_mod_variable(funcStr); - } if (!gSmLuaConvertSuccess || funcRef == 0) { LOG_LUA("Failed to call lua geo function, could not find lua function '%s'", funcStr); return NULL;