Skip to content

Commit

Permalink
fix machine sound volume,fix dep error, add dry_soil
Browse files Browse the repository at this point in the history
  • Loading branch information
berengma committed Mar 3, 2020
1 parent 148798e commit 6f64960
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion harvester.lua
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ end
local function harvester_dig(pos, current_charge)
-- Start sawing things down
local remaining_charge = recursive_harvest(pos, current_charge)
minetest.sound_play("farming_nextgen_seeder", {pos = pos, gain = 1.0,
minetest.sound_play("farming_nextgen_seeder", {pos = pos, gain = 0.1,
max_hear_distance = 10})

-- Now drop items for the player
Expand Down
1 change: 0 additions & 1 deletion mod.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
name = farming_nextgen
depends =
optional depends = technic, farming_plus, farming
10 changes: 6 additions & 4 deletions seeder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ end

-- The default soils
local soil_nodenames = {
["farming:soil"] = true,
["farming:soil_wet"] = true,
["farming:soil"] = true,
["farming:soil_wet"] = true,
["farming:desert_sand_soil"] = true,
["farming:desert_sand_soil_wet"]= true
["farming:desert_sand_soil_wet"]= true,
["farming:dry_soil"] = true,
["farming:dry_soil_wet"] = true
}


Expand Down Expand Up @@ -316,7 +318,7 @@ end
local function seeder_dig(pos, current_charge, seednum, seedstack, user)
-- Start sawing things down
local remaining_charge, seednum, seedstack = recursive_dig(pos, current_charge, seednum, seedstack, user)
minetest.sound_play("farming_nextgen_seeder", {pos = pos, gain = 1.0, max_hear_distance = 10})
minetest.sound_play("farming_nextgen_seeder", {pos = pos, gain = 0.1, max_hear_distance = 10})
return remaining_charge, seednum, seedstack
end

Expand Down

0 comments on commit 6f64960

Please sign in to comment.