added ccompass.usage_hook(newstack, player) hook

This commit is contained in:
Alexander Weber 2017-06-14 13:07:41 +02:00
parent 4ff0205dca
commit 621c35aed0

View File

@ -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