mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-25 16:43:50 +01:00
Merge pull request #59 from oversword/bls-186
Check harvester protection for each node it attempts to harvest
This commit is contained in:
commit
898ed2e766
@ -237,7 +237,7 @@ local function harvest_field(this, meta)
|
||||
if node and node.name ~= "air" then
|
||||
local order = tubelib_addons1.FarmingNodes[node.name] or tubelib_addons1.Flowers[node.name]
|
||||
if order then
|
||||
if not remove_or_replace_node(this, pos, inv, node, order) then
|
||||
if not minetest.is_protected(pos, this.owner) and not remove_or_replace_node(this, pos, inv, node, order) then
|
||||
return false
|
||||
end
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user