From 79e9a625479d521f3204e1eef6b7240df35a194a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 7 Jan 2018 18:18:58 +0100 Subject: [PATCH] Fix STOOPID nil table index crash on leave --- mods/rebeds/functions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/rebeds/functions.lua b/mods/rebeds/functions.lua index f0ab97e..ff2a570 100644 --- a/mods/rebeds/functions.lua +++ b/mods/rebeds/functions.lua @@ -16,6 +16,7 @@ minetest.register_on_respawnplayer(function(player) end) minetest.register_on_leaveplayer(function(player) + local name = player:get_player_name() rebeds.player[name] = nil end) -- 2.11.4.GIT