Fix luacheck warning

This commit is contained in:
Hugues Ross 2020-06-13 12:25:54 -04:00
parent ed967ddd0d
commit bd1d21f833

View File

@ -679,10 +679,10 @@ minetest.register_on_player_receive_fields(function(player, name, fields)
local meta = minetest.get_meta(player_tables[player:get_player_name()].pos);
local rank = 1;
local name = minetest.get_node(player_tables[player:get_player_name()].pos).name;
if name == "cartographer:standard_table" then
local node_name = minetest.get_node(player_tables[player:get_player_name()].pos).name;
if node_name == "cartographer:standard_table" then
rank = 2;
elseif name == "cartographer:advanced_table" then
elseif node_name == "cartographer:advanced_table" then
rank = 3;
end