Skip to content

Commit

Permalink
Global to local (#2982)
Browse files Browse the repository at this point in the history
Fixed a bug with inability to pick up with physgun any objects after explosion.
  • Loading branch information
Nexeonenn authored Jan 21, 2024
1 parent 16e6a84 commit aaeb1d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/entities/gmod_wire_explosive.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aaeb1d7

Please sign in to comment.