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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Referencia en una nueva incidencia
Block a user