From a61e45f340c284260f6f88273cc9d8ef0be96774 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Sat, 25 Nov 2023 04:17:08 -0300 Subject: [PATCH] fix: cask and kegs --- data-otservbr-global/scripts/actions/other/cask_kegs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-otservbr-global/scripts/actions/other/cask_kegs.lua b/data-otservbr-global/scripts/actions/other/cask_kegs.lua index f15ea2fd0e7..872d30d613c 100644 --- a/data-otservbr-global/scripts/actions/other/cask_kegs.lua +++ b/data-otservbr-global/scripts/actions/other/cask_kegs.lua @@ -39,7 +39,7 @@ function flasks.onUse(player, item, fromPosition, target, toPosition, isHotkey) return false end - local charges = item:getCharges() + local charges = target:getCharges() local itemCount = item:getCount() local recharged = itemCount