projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16fe1ef
)
Farming: Add quiet sounds to seeds
author
paramat
<mat.gregory@virginmedia.com>
Fri, 22 Apr 2016 15:20:47 +0000
(16:20 +0100)
committer
paramat
<mat.gregory@virginmedia.com>
Sat, 23 Apr 2016 19:09:04 +0000
(20:09 +0100)
mods/farming/api.lua
patch
|
blob
|
history
diff --git
a/mods/farming/api.lua
b/mods/farming/api.lua
index a0c1992f2492291fcc88228b98e129be5accaa4a..68f7be752c32f7211774a731e4c2fbf7dee86832 100644
(file)
--- a/
mods/farming/api.lua
+++ b/
mods/farming/api.lua
@@
-220,9
+220,14
@@
farming.register_plant = function(name, def)
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
fertility = def.fertility,
+ sounds = default.node_sound_dirt_defaults({
+ dug = {name = "default_grass_footstep", gain = 0.2},
+ place = {name = "default_place_node", gain = 0.25},
+ }),
+
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, mname .. ":seed_" .. pname)
- end
+ end
,
})
-- Register harvest