From 236b6d851c337417a39acc4bda83965a6db76e48 Mon Sep 17 00:00:00 2001 From: GunshipPenguin <167rhys@gmail.com> Date: Fri, 22 May 2015 21:22:59 -0700 Subject: [PATCH] Fix another crash bug --- mods/hungry_games/engine.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/hungry_games/engine.lua b/mods/hungry_games/engine.lua index 2138ac6..ffd3bb6 100644 --- a/mods/hungry_games/engine.lua +++ b/mods/hungry_games/engine.lua @@ -14,7 +14,12 @@ local end_grace = function() end local drop_player_items = function(playerName, clear) --If clear != nil, don't drop items, just clear inventory + if not playerName then + return + end + local player = minetest.get_player_by_name(playerName) + if not player then return end