1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-04 17:20:26 +01:00

remove uncessary nil check

This commit is contained in:
fluxionary 2022-10-01 12:11:44 -07:00 committed by GitHub
parent f1b6f20b13
commit 0ea6580320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,10 +53,6 @@ end
default.chest.open_chests = {} default.chest.open_chests = {}
minetest.register_on_player_receive_fields(function(player, formname, fields) minetest.register_on_player_receive_fields(function(player, formname, fields)
if not player then
return
end
local pn = player:get_player_name() local pn = player:get_player_name()
if formname ~= "default:chest" then if formname ~= "default:chest" then