mirror of
https://github.com/wiremod/advdupe2.git
synced 2025-03-04 03:03:05 -05:00
Fixed bug where duplicating effects would run unintentinal PlayerSpawnSENT hook (#290)
This commit is contained in:
parent
0176469c43
commit
adb66ad128
@ -910,7 +910,7 @@ local function CreateEntityFromTable(EntTable, Player)
|
||||
//Create sents using their spawn function with the arguments we stored earlier
|
||||
sent = true
|
||||
|
||||
if(not EntTable.BuildDupeInfo.IsVehicle and not EntTable.BuildDupeInfo.IsNPC and EntTable.Class~="prop_ragdoll")then //These three are auto done
|
||||
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
|
||||
sent = hook.Call("PlayerSpawnSENT", nil, Player, EntTable.Class)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user