From 9f98c588ee832fe1c273a915e02c97e36aefb6b8 Mon Sep 17 00:00:00 2001 From: TovarischPootis <54110479+TovarischPootis@users.noreply.github.com> Date: Thu, 8 Jul 2021 21:18:46 +0300 Subject: [PATCH] fix bug that shows players as purchasable doors lmao --- plugins/doors/cl_plugin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/doors/cl_plugin.lua b/plugins/doors/cl_plugin.lua index 36dc09f4..679bf360 100644 --- a/plugins/doors/cl_plugin.lua +++ b/plugins/doors/cl_plugin.lua @@ -17,7 +17,7 @@ local configGet = nut.config.get local teamGetColor = team.GetColor function PLUGIN:DrawEntityInfo(entity, alpha) - if (entity.isDoor(entity) and !entity:getNetVar("hidden") and hook.Run("CanDrawDoorInfo", entity)) ~= false then + if (entity.isDoor(entity) and entity:isDoor() and !entity:getNetVar("hidden") and hook.Run("CanDrawDoorInfo", entity)) ~= false then local position = toScreen(entity.LocalToWorld(entity, entity.OBBCenter(entity))) local x, y = position.x, position.y local owner = entity.GetDTEntity(entity, 0)