Merge pull request #108 from 0siribix/master

Quarry will no longer allow to dig if it has fuel
This commit is contained in:
Joachim Stolberg 2021-09-27 18:49:09 +02:00 committed by GitHub
commit bec1ebf168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)