Skip to content

Commit

Permalink
use set value instead of clearing cache (micro-optimization, but stil…
Browse files Browse the repository at this point in the history
…l...)
  • Loading branch information
BuckarooBanzay committed Sep 4, 2020
1 parent 938fd3a commit f77ed89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ end

local old_set_player_privs = minetest.set_player_privs
minetest.set_player_privs = function(name, privs)
cache[name] = nil
cache[name] = privs
old_set_player_privs(name, privs);
end

Expand Down

0 comments on commit f77ed89

Please sign in to comment.