Prevent players from mutating entities if they're pac banned (#1245)

This commit is contained in:
Redox 2022-10-29 00:06:08 +02:00 committed by GitHub
parent df95ee286e
commit b4f3803728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,8 @@ function emut.MutateEntity(owner, class_name, ent, ...)
return
end
if pace.IsBanned(owner) then return end
if SERVER then
if not override_enabled then
if owner:IsPlayer() and not emut.registered_mutators[class_name].cvar:GetBool() then