mirror of
https://github.com/wiremod/advdupe2.git
synced 2025-03-04 03:03:05 -05:00
Add AdvDupe2_PreCreateEntity
hook. (#458)
I need it to fix model path change in my model pack.
This commit is contained in:
parent
ddd8b76af5
commit
f2936d5315
@ -903,6 +903,7 @@ local function IsAllowed(Player, Class, EntityClass)
|
||||
end
|
||||
|
||||
local function CreateEntityFromTable(EntTable, Player)
|
||||
hook.Run("AdvDupe2_PreCreateEntity", EntTable, Player)
|
||||
|
||||
local EntityClass = duplicator.FindEntityClass(EntTable.Class)
|
||||
if not IsAllowed(Player, EntTable.Class, EntityClass) then
|
||||
|
Loading…
Reference in New Issue
Block a user