From 56630b668636688df4594f4a48e06a5837cc12c4 Mon Sep 17 00:00:00 2001 From: Xerasin Date: Mon, 16 May 2022 12:39:04 -0700 Subject: [PATCH] minor fix --- lua/autorun/wowozela.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/autorun/wowozela.lua b/lua/autorun/wowozela.lua index 36c7d12..e830f0f 100644 --- a/lua/autorun/wowozela.lua +++ b/lua/autorun/wowozela.lua @@ -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)