Fix possible conflicts with inventory callbacks

This commit is contained in:
Wuzzy 2017-03-09 18:51:01 +01:00
parent e011b9024d
commit 9f01a4993b

View file

@ -353,6 +353,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if not minetest.setting_getbool("creative_mode") then if not minetest.setting_getbool("creative_mode") then
return return
end end
if formname ~= "" then
return
end
local name = player:get_player_name() local name = player:get_player_name()