aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-11-02 13:49:22 +0100
committerNovatux <nathanael.courant@laposte.net>2013-11-02 13:49:22 +0100
commit2bf9abade2c758fcebc37a589b65e894c898fc6e (patch)
tree14c0732075935956a02182158a53323766b03a0b /games
parent69a59f1e419d8204cc90cfaa25ad690c9b3d9e16 (diff)
downloadminetest-2bf9abade2c758fcebc37a589b65e894c898fc6e.tar.gz
minetest-2bf9abade2c758fcebc37a589b65e894c898fc6e.tar.bz2
minetest-2bf9abade2c758fcebc37a589b65e894c898fc6e.zip
Fix grass adding/removing ABM.
Diffstat (limited to 'games')
-rw-r--r--games/minimal/mods/default/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/minimal/mods/default/init.lua b/games/minimal/mods/default/init.lua
index ce110126e..4e6ad67bd 100644
--- a/games/minimal/mods/default/init.lua
+++ b/games/minimal/mods/default/init.lua
@@ -1618,7 +1618,7 @@ minetest.register_abm({
local above = {x=pos.x, y=pos.y+1, z=pos.z}
local name = minetest.get_node(above).name
local nodedef = minetest.registered_nodes[name]
- if nodedef and nodedef.sunlight_propagates and nodedef.liquidtype == "none" and minetest.get_node_light(above) >= 13 then
+ if nodedef and (nodedef.sunlight_propagates or nodedef.paramtype == "light") and nodedef.liquidtype == "none" and minetest.get_node_light(above) >= 13 then
if name == "default:snow" or name == "default:snowblock" then
minetest.set_node(pos, {name = "default:dirt_with_snow"})
else
@@ -1636,7 +1636,7 @@ minetest.register_abm({
local above = {x=pos.x, y=pos.y+1, z=pos.z}
local name = minetest.get_node(above).name
local nodedef = minetest.registered_nodes[name]
- if name ~= "ignore" and nodedef and not (nodedef.sunlight_propagates and nodedef.liquidtype == "none") then
+ if name ~= "ignore" and nodedef and not ((nodedef.sunlight_propagates or nodedef.paramtype == "light") and nodedef.liquidtype == "none") then
minetest.set_node(pos, {name = "default:dirt"})
end
end