fix drill and laser digging
digtron crates can now be dug correctly
This commit is contained in:
parent
a81aa242d3
commit
5069207e71
@ -55,11 +55,11 @@ local function drill_dig_it0 (pos,player)
|
||||
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 == "digtron:loaded_crate" then return end
|
||||
if node.name == "digtron:loaded_locked_crate" then 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)
|
||||
local def = minetest.registered_nodes[node.name]
|
||||
if not def then return end
|
||||
def.on_dig(pos,node,player)
|
||||
end
|
||||
|
||||
local function drill_dig_it1 (player)
|
||||
|
@ -46,7 +46,7 @@ local function laser_node(pos, node, player)
|
||||
})
|
||||
return
|
||||
end
|
||||
minetest.node_dig(pos, node, player)
|
||||
def.on_dig(pos, node, player)
|
||||
end
|
||||
|
||||
local keep_node = {air = true}
|
||||
|
Loading…
x
Reference in New Issue
Block a user