Skip to content

Commit 116adbc

Browse files
authored
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.
2 parents 5043539 + 01a770d commit 116adbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/pac3/extra/client/wire_expression_extension.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ end)
88

99
local function SetKeyValue(ply, ent, unique_id, key, val)
1010
local set = "Set" .. key
11+
12+
if ent == game.GetWorld() then ent = pac.WorldEntity end
1113

1214
local part = pac.GetPartFromUniqueID(pac.Hash(ply), unique_id)
1315
if not IsValid( part ) then return end

0 commit comments

Comments
 (0)