From c295395ae87e6a0e6f31032b8c0f7584f37711bd Mon Sep 17 00:00:00 2001 From: Sokomine Date: Wed, 10 Oct 2018 00:53:55 +0200 Subject: [PATCH] dig travelnet in creative mode directly again --- init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 1d4c643..a7aab85 100644 --- a/init.lua +++ b/init.lua @@ -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();