From 621c35aed05940d3de0ca40053366386b78698cc Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Wed, 14 Jun 2017 13:07:41 +0200 Subject: [PATCH] added ccompass.usage_hook(newstack, player) hook --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index 5b8d632..c4ccd45 100644 --- a/init.lua +++ b/init.lua @@ -66,6 +66,9 @@ local function get_compass_stack(player, stack) if metadata then newstack:get_meta():from_table(metadata) end + if ccompass.usage_hook then + newstack = ccompass.usage_hook(newstack, player) or newstack + end return newstack end