From 0ea658032053c2bf7f901d029e414f3f894ce5b2 Mon Sep 17 00:00:00 2001 From: fluxionary <25628292+fluxionary@users.noreply.github.com> Date: Sat, 1 Oct 2022 12:11:44 -0700 Subject: [PATCH] remove uncessary nil check --- mods/default/chests.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mods/default/chests.lua b/mods/default/chests.lua index 4d4a73c5..086817cb 100644 --- a/mods/default/chests.lua +++ b/mods/default/chests.lua @@ -53,10 +53,6 @@ end default.chest.open_chests = {} minetest.register_on_player_receive_fields(function(player, formname, fields) - if not player then - return - end - local pn = player:get_player_name() if formname ~= "default:chest" then