summaryrefslogtreecommitdiff
path: root/gamemode/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/init.lua')
-rw-r--r--gamemode/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/gamemode/init.lua b/gamemode/init.lua
index 0d2fa20..55d98eb 100644
--- a/gamemode/init.lua
+++ b/gamemode/init.lua
@@ -1122,7 +1122,7 @@ function GM:PropBreak( att, prop )
if IsValid( phys ) and prop:GetModel() != "models/props_debris/wood_board04a.mdl" then
- if prop.IsWooden then
+ if prop.IsWooden or (ent:GetMaterialType() == MAT_WOOD) then
GAMEMODE:SpawnChunk( prop:LocalToWorld( prop:OBBCenter() ) )
GAMEMODE.WoodCount = GAMEMODE.WoodCount - 1