Skip to content

Commit

Permalink
fix(entitiesblacklist): checking a key-value pair for empty
Browse files Browse the repository at this point in the history
  • Loading branch information
BerkieBb authored May 12, 2024
1 parent d801647 commit 89717f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qbx_entitiesblacklist/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local config = require 'qbx_entitiesblacklist.config'
local bucketLockDownMode = GetConvar('qbx:bucketlockdownmode', 'relaxed')

-- If you want to blacklist peds and vehicles from certaiin locations utilize Car gens ymaps as done in streams/car_gen_disablers, as entityCreating handler is very expensive compared to ymap.
if bucketLockDownMode == 'inactive' or #config.blacklisted == 0 then return end
if bucketLockDownMode == 'inactive' or table.type(config.blacklisted) == 'empty' then return end

-- Blacklisting entities can just be handled entirely server side with onesync events
-- No need to run coroutines to supress or delete these when we can simply delete them before they spawn
Expand Down

0 comments on commit 89717f6

Please sign in to comment.