diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-04-30 19:41:57 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-04-30 19:41:57 +0300 |
commit | a30f4c16e0504fab162f8ae14e3b9b8a05fda71f (patch) | |
tree | 085a197a75c44a304745fea2bba724820bc20342 | |
parent | 4e2a550ec92801f3ceaedfbed0d4f8b7b5308ed1 (diff) |
better soil support
-rw-r--r-- | technic/tools/walking_tractor.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/technic/tools/walking_tractor.lua b/technic/tools/walking_tractor.lua index 01d3ae1..8971579 100644 --- a/technic/tools/walking_tractor.lua +++ b/technic/tools/walking_tractor.lua @@ -55,6 +55,12 @@ local ripe_for_harvest = { "ethereal:strawberry_8", } +local compatible_soils = { + "group:soil", + "default:dirt_with_snow", + "ethereal:dry_dirt" +} + local node_removed -- Mode switcher for the tool @@ -167,7 +173,7 @@ local function work_on_soil(itemstack, user, pointed_thing) if meta.mode <= 3 then -- tilling - local found_obj = minetest.find_nodes_in_area(start_pos, end_pos, {"group:soil"}) + local found_obj = minetest.find_nodes_in_area(start_pos, end_pos, compatible_soils) for _, f in ipairs(found_obj) do -- unfortunately, there is no callback to track the node change without -- digging it first |