est31
2015-02-02 9444eff7f7853b0e4385adbd117cd6bace8dcb8f
technic/tools/mining_drill.lua
@@ -8,7 +8,7 @@
   recipe = {
      {'moreores:tin_ingot',            'technic:diamond_drill_head', 'moreores:tin_ingot'},
      {'technic:stainless_steel_ingot', 'technic:motor',              'technic:stainless_steel_ingot'},
      {'',                              'technic:red_energy_crystal', 'moreores:copper_ingot'},
      {'',                              'technic:red_energy_crystal', 'default:copper_ingot'},
   }
})
minetest.register_craft({
@@ -51,12 +51,12 @@
      minetest.record_protection_violation(pos, player:get_player_name())
      return
   end
   local node=minetest.env:get_node(pos)
   local node=minetest.get_node(pos)
   if node.name == "air" or node.name == "ignore" then return end
   if node.name == "default:lava_source" then return end
   if node.name == "default:lava_flowing" then return end
   if node.name == "default:water_source" then minetest.env:remove_node(pos) return end
   if node.name == "default:water_flowing" then minetest.env:remove_node(pos) return end
   if node.name == "default:water_source" then minetest.remove_node(pos) return end
   if node.name == "default:water_flowing" then minetest.remove_node(pos) return end
   minetest.node_dig(pos,node,player)
end
@@ -230,7 +230,7 @@
end
local function pos_is_pointable(pos)
   local node = minetest.env:get_node(pos)
   local node = minetest.get_node(pos)
   local nodedef = minetest.registered_nodes[node.name]
   return nodedef and nodedef.pointable
end