Advertisement
Guest User

Untitled

a guest
Oct 8th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. travelnet.check_if_trying_to_dig = function(puncher, node)
  2.  
  3. if not puncher then return false end
  4.  
  5. local tool_caps = puncher:get_wielded_item():get_tool_capabilities()
  6.  
  7. if not tool_caps then return false end
  8.  
  9. if tool_caps["groupcaps"] and tool_caps["groupcaps"]["cracky"] then
  10. return true
  11. end
  12.  
  13. return false
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement