Skip to content

Commit 0d42cc3

Browse files
committed
Fixed input functions no longer being cached (introduced into 3e7b711).
1 parent ced883d commit 0d42cc3

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
from entities.classes import server_classes
4242
from entities.constants import WORLD_ENTITY_INDEX
4343
from entities.constants import DamageTypes
44+
from entities.datamaps import InputFunction
4445
from entities.helpers import index_from_inthandle
4546
from entities.helpers import index_from_pointer
4647
from entities.helpers import wrap_entity_mem_func
@@ -230,7 +231,7 @@ def __getattr__(self, attr):
230231
value = value.__get__(instance)
231232

232233
# Is the value a dynamic function?
233-
if isinstance(value, MemberFunction):
234+
if isinstance(value, (MemberFunction, InputFunction)):
234235

235236
# Cache the value
236237
with suppress(AttributeError):

0 commit comments

Comments
 (0)