mirror of
https://github.com/Sokomine/travelnet.git
synced 2024-11-27 09:43:49 +01:00
dig travelnet in creative mode directly again
This commit is contained in:
parent
33c88ecb98
commit
c295395ae8
5
init.lua
5
init.lua
@ -144,8 +144,9 @@ travelnet.check_if_trying_to_dig = function( puncher, node )
|
|||||||
-- show menu when in creative mode
|
-- show menu when in creative mode
|
||||||
if( creative
|
if( creative
|
||||||
and creative.is_enabled_for(puncher:get_player_name())
|
and creative.is_enabled_for(puncher:get_player_name())
|
||||||
and (not(puncher:get_wielded_item())
|
-- and (not(puncher:get_wielded_item())
|
||||||
or puncher:get_wielded_item():get_name()~="default:pick_diamond")) then
|
-- or puncher:get_wielded_item():get_name()~="default:pick_diamond")) then
|
||||||
|
) then
|
||||||
return false;
|
return false;
|
||||||
end
|
end
|
||||||
local tool_capabilities = puncher:get_wielded_item():get_tool_capabilities();
|
local tool_capabilities = puncher:get_wielded_item():get_tool_capabilities();
|
||||||
|
Loading…
Reference in New Issue
Block a user