Skip to content

Commit a14df21

Browse files
author
L'In20Cible
committed
Fixed _EntityHook decorated functions from not being correctly registered when pending.
1 parent d53187a commit a14df21

File tree

1 file changed

+1
-1
lines changed
  • addons/source-python/packages/source-python/entities

1 file changed

+1
-1
lines changed

addons/source-python/packages/source-python/entities/hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def __call__(self, callback):
110110
_waiting_entity_hooks.append(self)
111111

112112
# Return the callback
113-
return self.callback
113+
return self
114114

115115
@property
116116
def hook_type(self):

0 commit comments

Comments
 (0)