From fa800eb51f208f530ec923dbc71cb0601a081de3 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" <48434875+JonnyBro@users.noreply.github.com> Date: Wed, 29 May 2024 10:25:41 +0500 Subject: [PATCH] Update shared.lua --- .../beatrun/entities/entities/br_databank/shared.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beatrun/gamemodes/beatrun/entities/entities/br_databank/shared.lua b/beatrun/gamemodes/beatrun/entities/entities/br_databank/shared.lua index a8e1989..4e2f4b6 100644 --- a/beatrun/gamemodes/beatrun/entities/entities/br_databank/shared.lua +++ b/beatrun/gamemodes/beatrun/entities/entities/br_databank/shared.lua @@ -124,10 +124,10 @@ local meta = FindMetaTable("Player") if SERVER then function meta:DataTheft_Bank() local dbtbl = ents.FindByClass("br_databank") - local bank = dbtbl[math.random(1, #dbtbl)] + local bank = dbtbl[math.random(#dbtbl)] if bank then self:SetNW2Entity("DataBank", bank) end end -end \ No newline at end of file +end