From b9a3eac2ea20b59b57234466be88ae6b4f2379db Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 25 Jun 2016 18:54:21 -0400 Subject: Fixed bug where wooden objects were not detected correctly --- gamemode/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gamemode') diff --git a/gamemode/init.lua b/gamemode/init.lua index 4a43b11..d6696a6 100644 --- a/gamemode/init.lua +++ b/gamemode/init.lua @@ -217,7 +217,7 @@ function GM:InitPostEntity() for k,v in pairs(ents.FindByClass("prop_physics")) do local min,max = v:WorldSpaceAABB() local height = max.z - min.z - if height > 10 and (not v:IsFrozen()) then + if height > 10 and (v:GetPhysicsObject():IsMotionEnabled()) then table.insert(tbl,v) end end -- cgit v1.2.3-70-g09d2