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:
a2d4e57
)
Remove "grass under snow" from default:dirt_with_snow in darkness.
author
Auke Kok
<sofar@foo-projects.org>
Mon, 4 Apr 2016 02:52:27 +0000
(19:52 -0700)
committer
paramat
<mat.gregory@virginmedia.com>
Sat, 16 Apr 2016 18:27:34 +0000
(19:27 +0100)
This is technically "dirt with grass" that's just under a snow
cover, so in darkness the grass on these nodes will also die,
turning it into dirt.
This doesn't convert dirt_with_snow under snow.
mods/default/functions.lua
patch
|
blob
|
history
diff --git
a/mods/default/functions.lua
b/mods/default/functions.lua
index dc46726afd28d22c430836d8e007d80a7f1ad3ac..bd55d32fee873a217b92a6fd8c2abd7faa76b68c 100644
(file)
--- a/
mods/default/functions.lua
+++ b/
mods/default/functions.lua
@@
-384,7
+384,11
@@
minetest.register_abm({
--
minetest.register_abm({
- nodenames = {"default:dirt_with_grass", "default:dirt_with_dry_grass"},
+ nodenames = {
+ "default:dirt_with_grass",
+ "default:dirt_with_dry_grass",
+ "default:dirt_with_snow",
+ },
interval = 8,
chance = 50,
catch_up = false,