summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-15 12:58:04 +0100
committerWuzzy <almikes@aol.com>2016-12-15 12:58:04 +0100
commitfbe5de50626303e99607d61a3c462f10213424cd (patch)
treee55f16b7eee8025b106d99058c1fff5854a32309
parentd2ac96253d40b55c8d4f3a498acff6da94f263d0 (diff)
Don't destroy player data afer leaving
-rw-r--r--init.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index b239609..7a1f902 100644
--- a/init.lua
+++ b/init.lua
@@ -1194,10 +1194,6 @@ minetest.register_on_joinplayer(function(player)
end
end)
-minetest.register_on_leaveplayer(function(player)
- doc.data.players[player:get_player_name()] = nil
-end)
-
---[[ Add buttons for inventory mods ]]
local button_action = function(player)
doc.show_doc(player:get_player_name())