From 76a0ad66241698b2fc94f07b41c6dddbbe75dac2 Mon Sep 17 00:00:00 2001 From: BerkieBb <82737367+BerkieBb@users.noreply.github.com> Date: Sun, 12 May 2024 23:05:14 +0200 Subject: [PATCH] fix(entitiesblacklist): checking a key-value pair for empty --- qbx_entitiesblacklist/server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbx_entitiesblacklist/server.lua b/qbx_entitiesblacklist/server.lua index b64f11e..51772ac 100644 --- a/qbx_entitiesblacklist/server.lua +++ b/qbx_entitiesblacklist/server.lua @@ -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