Merge pull request #1322 from iNV3RT3D/e2-world-fix

Added ability for pacSetKeyValue() E2 function to work on parts with group owner name set to world.
This commit is contained in:
Elias Hogstvedt 2023-12-27 15:53:12 +07:00 committed by GitHub
commit 116adbcdff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,8 @@ end)
local function SetKeyValue(ply, ent, unique_id, key, val)
local set = "Set" .. key
if ent == game.GetWorld() then ent = pac.WorldEntity end
local part = pac.GetPartFromUniqueID(pac.Hash(ply), unique_id)
if not IsValid( part ) then return end