Skip to content

Commit

Permalink
Merge pull request #461 from Aspect12/master
Browse files Browse the repository at this point in the history
Allow global table vars to always be networked.
  • Loading branch information
alexgrist authored Nov 21, 2024
2 parents fbbdc6a + 262948a commit f97adac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemode/core/libs/sv_networking.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ end

function SetNetVar(key, value, receiver) -- luacheck: globals SetNetVar
if (CheckBadType(key, value)) then return end
if (GetNetVar(key) == value) then return end
if (GetNetVar(key) == value and !istable(value)) then return end

ix.net.globals[key] = value

Expand Down

0 comments on commit f97adac

Please sign in to comment.