From f1f20664e072540ddb72fc8e00a0ddaa025057a4 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Wed, 4 Apr 2018 08:04:27 +1200 Subject: [PATCH] Don't auto-uncloak on leave This is not required anymore. --- core.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core.lua b/core.lua index 7037d4b..6906282 100644 --- a/core.lua +++ b/core.lua @@ -166,7 +166,7 @@ cloaking.uncloak = function(player) end end --- Auto-uncloaking +-- API functions cloaking.auto_uncloak = function(player) if type(player) ~= "string" then player = player:get_player_name() @@ -176,10 +176,6 @@ cloaking.auto_uncloak = function(player) end end -minetest.register_on_leaveplayer(cloaking.auto_uncloak) - - --- API functions cloaking.get_cloaked_players = function() local players = {} for player, cloaked in pairs(cloaked_players) do