Remove unnecessary code

This commit is contained in:
luk3yx 2018-08-23 10:13:46 +12:00
parent 82caf7753f
commit 05fe704c99
1 changed files with 2 additions and 4 deletions

View File

@ -74,7 +74,7 @@ local override_chatcommands = function()
for _, func in ipairs(minetest.registered_on_leaveplayers) do
c = c + 1
local f = func
if f ~= cloaking.auto_uncloak and f ~= cloaking.delayed_uncloak then
if f ~= cloaking.delayed_uncloak then
minetest.registered_on_leaveplayers[c] = function(p, t, cloaked)
if cloaked ~= 'cloaking' and
cloaked_players[p:get_player_name()] then
@ -159,9 +159,7 @@ cloaking.uncloak = function(player)
end
for _, f in ipairs(minetest.registered_on_joinplayers) do
if f ~= cloaking.auto_uncloak then
f(player)
end
f(player)
end
end