mirror of
https://github.com/CapsAdmin/wowozela.git
synced 2025-03-04 03:13:27 -05:00
minor fix
This commit is contained in:
parent
e140d01c4f
commit
56630b6686
@ -532,7 +532,7 @@ if CLIENT then -- sample meta
|
||||
|
||||
|
||||
sample.create(function()
|
||||
if self.KeyToSample[key] == sample then
|
||||
if self.KeyToSample[key] == sample and IsValid(self.Player) then
|
||||
play_sound(sample, self)
|
||||
end
|
||||
end)
|
||||
@ -812,7 +812,7 @@ do -- hooks
|
||||
|
||||
net.Receive("wowozela_sample", function()
|
||||
local ply = net.ReadEntity()
|
||||
if not ply:IsValid() then
|
||||
if not IsValid(ply) then
|
||||
return
|
||||
end
|
||||
local sampler = wowozela.GetSampler(ply)
|
||||
|
Loading…
Reference in New Issue
Block a user