Skip to content
Snippets Groups Projects
Commit 4ff6b55e authored by Thomas Rudin's avatar Thomas Rudin
Browse files

check item for nil

parent 6251b5a5
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
end
local item = selected_item_data[playername]
if not item then
return
end
if fields.teleport then
if not minetest.check_player_privs(playername, "teleport") then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment