mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-25 16:43:50 +01:00
Quarry will no longer allow to dig if it has fuel
This commit is contained in:
parent
956b91f030
commit
a6abefe8d3
@ -417,7 +417,7 @@ minetest.register_node("tubelib_addons1:quarry_defect", {
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
local inv = M(pos):get_inventory()
|
local inv = M(pos):get_inventory()
|
||||||
return inv:is_empty("main")
|
return inv:is_empty("main") and inv:is_empty("fuel")
|
||||||
end,
|
end,
|
||||||
|
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
|
Loading…
Reference in New Issue
Block a user