Skip to content

Commit

Permalink
Superuser check (#2007)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZH-Hristov authored Feb 22, 2025
1 parent 3b25e10 commit 00fa72a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/starfall/libs_sv/nextbot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ function nextbot_library.create(pos, mdl)
nb:SetModel(mdl)
nb.instance = instance
nb:Spawn()
nb:SetCreator(ply)

if ply ~= SF.Superuser then
nb:SetCreator(ply)
end

entList:register(instance, nb)

if CPPI then nb:CPPISetOwner(ply == SF.Superuser and NULL or ply) end
Expand Down

0 comments on commit 00fa72a

Please sign in to comment.