From 680c62518ef98d28dbb0ff59f1914531f1dfb841 Mon Sep 17 00:00:00 2001 From: Jonathan <30329245+CookStar@users.noreply.github.com> Date: Wed, 11 Dec 2019 17:05:48 +0900 Subject: [PATCH] Fixed Player.is_bot to be cached correctly. Fix to 9c7e4a22d5d465f705379457d5ce704ca0aa3eb6 --- addons/source-python/packages/source-python/players/_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 addons/source-python/packages/source-python/players/_base.py diff --git a/addons/source-python/packages/source-python/players/_base.py b/addons/source-python/packages/source-python/players/_base.py old mode 100644 new mode 100755 index 54c78dc6c..3755ff632 --- a/addons/source-python/packages/source-python/players/_base.py +++ b/addons/source-python/packages/source-python/players/_base.py @@ -226,14 +226,14 @@ def _is_bot(self): :rtype: bool """ - return self._is_bot + return self.is_fake_client() or self.steamid == 'BOT' def is_bot(self): """Return whether the player is a bot. :rtype: bool """ - return self.is_fake_client() or self.steamid == 'BOT' + return self._is_bot def is_in_a_vehicle(self): """Return whether the player is in a vehicle.