From d8ae71e6947e291945d6ff98759310130f15546f Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 18 Oct 2015 21:35:21 +0100 Subject: statsmanager: Add get() method --- core/statsmanager.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') diff --git a/core/statsmanager.lua b/core/statsmanager.lua index d6cbd2bc..7771a2b3 100644 --- a/core/statsmanager.lua +++ b/core/statsmanager.lua @@ -66,4 +66,7 @@ return { get_stats = function () return latest_stats, changed_stats, stats_extra; end; + get = function (name) + return latest_stats[name], stats_extra[name]; + end; }; -- cgit v1.2.3