mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-17 15:58:37 +01:00
allow quarry to operate in vacuum
This commit is contained in:
parent
e931041358
commit
012b961d8f
@ -164,7 +164,7 @@ local function quarry_run(pos, node)
|
|||||||
for ay = startpos.y, digpos.y+1, -1 do
|
for ay = startpos.y, digpos.y+1, -1 do
|
||||||
local checkpos = {x=digpos.x, y=ay, z=digpos.z}
|
local checkpos = {x=digpos.x, y=ay, z=digpos.z}
|
||||||
local checknode = technic.get_or_load_node(checkpos) or minetest.get_node(checkpos)
|
local checknode = technic.get_or_load_node(checkpos) or minetest.get_node(checkpos)
|
||||||
if checknode.name ~= "air" then
|
if checknode.name ~= "air" and checknode.name ~= "vacuum:vacuum" then
|
||||||
can_dig = false
|
can_dig = false
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user