Skip to content

Commit adb66ad

Browse files
authored
Fixed bug where duplicating effects would run unintentinal PlayerSpawnSENT hook (#290)
1 parent 0176469 commit adb66ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/advdupe2/sv_clipboard.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ local function CreateEntityFromTable(EntTable, Player)
910910
//Create sents using their spawn function with the arguments we stored earlier
911911
sent = true
912912

913-
if(not EntTable.BuildDupeInfo.IsVehicle and not EntTable.BuildDupeInfo.IsNPC and EntTable.Class~="prop_ragdoll")then //These three are auto done
913+
if(not EntTable.BuildDupeInfo.IsVehicle and not EntTable.BuildDupeInfo.IsNPC and EntTable.Class ~= "prop_ragdoll" and EntTable.Class ~= "prop_effect") then //These four are auto done
914914
sent = hook.Call("PlayerSpawnSENT", nil, Player, EntTable.Class)
915915
end
916916

0 commit comments

Comments
 (0)