From aaeb1d718732efe27ce7981aeae341e273b3e10a Mon Sep 17 00:00:00 2001 From: Nexeonenn Date: Mon, 22 Jan 2024 00:53:04 +0700 Subject: [PATCH] Global to local (#2982) Fixed a bug with inability to pick up with physgun any objects after explosion. --- lua/entities/gmod_wire_explosive.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/entities/gmod_wire_explosive.lua b/lua/entities/gmod_wire_explosive.lua index 918407badd..42e245b2cf 100644 --- a/lua/entities/gmod_wire_explosive.lua +++ b/lua/entities/gmod_wire_explosive.lua @@ -218,8 +218,8 @@ function ENT:Explode() if (not self.exploding) then return end --why are we exploding if we shouldn't be - ply = self:GetPlayer() or self - if(not IsValid(ply)) then ply = self end; + local ply = self:GetPlayer() + if not IsValid(ply) then ply = self end if (self.InvisibleAtZero) then self:SetCollisionGroup(COLLISION_GROUP_DEBRIS)