dig travelnet in creative mode directly again

This commit is contained in:
Sokomine 2018-10-10 00:53:55 +02:00
parent 33c88ecb98
commit c295395ae8

@ -144,8 +144,9 @@ travelnet.check_if_trying_to_dig = function( puncher, node )
-- show menu when in creative mode
if( creative
and creative.is_enabled_for(puncher:get_player_name())
and (not(puncher:get_wielded_item())
or puncher:get_wielded_item():get_name()~="default:pick_diamond")) then
-- and (not(puncher:get_wielded_item())
-- or puncher:get_wielded_item():get_name()~="default:pick_diamond")) then
) then
return false;
end
local tool_capabilities = puncher:get_wielded_item():get_tool_capabilities();