diff --git a/docs/source/reference/lua-scripting/events.rst b/docs/source/reference/lua-scripting/events.rst index b49e293744..ec46b9104c 100644 --- a/docs/source/reference/lua-scripting/events.rst +++ b/docs/source/reference/lua-scripting/events.rst @@ -133,7 +133,7 @@ Example: if item then -- Reduce condition by 1 -- Note that actor should be included, if applicable, to allow forcibly unequipping items whose condition is reduced to 0 - core:sendGlobalEvent('ModifyItemCondition', {actor = self, item = item, amount: -1}) + core.sendGlobalEvent('ModifyItemCondition', {actor = self, item = item, amount = -1}) end UI events