[whitelist] Update to Git patch 9a254b5:

https://github.com/AntumMT/mod-whitelist/tree/9a254b5
This commit is contained in:
Jordan Irwin 2017-08-17 22:18:39 -07:00
parent 118e06c5ee
commit 67414a5ea2
3 changed files with 3 additions and 3 deletions

View File

@ -578,6 +578,6 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[patch.trash_can]: https://github.com/AntumMT/mod-trash_can/tree/5a92bf4
[patch.unifieddyes]: https://github.com/AntumMT/mod-unifieddyes/tree/9c2f740
[patch.walking_light]: https://github.com/AntumMT/mod-walking_light/tree/e602515
[patch.whitelist]: https://github.com/AntumMT/mod-whitelist/tree/13e8686
[patch.whitelist]: https://github.com/AntumMT/mod-whitelist/tree/9a254b5
[patch.windmill]: https://github.com/AntumMT/mod-windmill/tree/7756ab4
[patch.workbench]: https://github.com/AntumMT/mod-workbench/tree/b964323

View File

@ -33,10 +33,9 @@ local function save_whitelist()
file:close()
end
load_whitelist()
if enabled then
minetest.register_on_prejoinplayer(function(name, ip)
load_whitelist()
if name == "singleplayer" or name == admin or whitelist[name] then
return
end

View File

@ -1,3 +1,4 @@
name = whitelist
author = ShadowNinja
license = CC0
version = 0.1