1
0
réplica de https://github.com/luanti-org/minetest_game.git synced 2026-01-13 04:35:47 +01:00

Trees: Add 'snowy' group for pine sapling snow detection

Use the 'snowy' group in the 'is snow nearby' function instead of
default nodes. Often snow nodes are not from the default mod.
Este commit está contenido en:
paramat
2017-01-31 14:14:13 +00:00
padre e86955afae
commit 2b215848d8
Se han modificado 2 ficheros con 4 adiciones y 5 borrados

Ver fichero

@@ -27,8 +27,7 @@ end
-- 'is snow nearby' function
local function is_snow_nearby(pos)
return minetest.find_node_near(pos, 1,
{"default:snow", "default:snowblock", "default:dirt_with_snow"})
return minetest.find_node_near(pos, 1, {"group:snowy"})
end