Skip to content

Commit 535dbb5

Browse files
authored
Fix SF SV effect whitelist (#41)
1 parent e58b102 commit 535dbb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/cfc_gmod_scripts/effects_whitelist/sh_init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ hook.Add( "Starfall_CanEffect", "CFC_GmodScripts_EffectWhitelist", function( nam
2424
if ply:IsAdmin() then return end
2525

2626
-- Only send the error message to the Starfall owner
27-
if ply == LocalPlayer() then
27+
if SERVER or ( CLIENT and ply == LocalPlayer() ) then
2828
return deny( ply, name )
2929
end
3030

0 commit comments

Comments
 (0)