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:
parent
f1b6f20b13
commit
0ea6580320
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user