merge local repository
This commit is contained in:
parent
6709dc40c2
commit
f07b6fa23e
|
@ -26,14 +26,16 @@ minetest.register_node("weather:snow_cover", {
|
||||||
drop = {}
|
drop = {}
|
||||||
})
|
})
|
||||||
|
|
||||||
--[[ Enable this section if you have a very fast PC
|
-- Snow cover ABM when weather_fast_pc setting is set to `true`
|
||||||
minetest.register_abm({
|
if minetest.is_yes(minetest.settings:get_bool('weather_fast_pc')) then
|
||||||
|
minetest.log('action', '[weather] Loaded fast computer ABM (snow covers when weather:snow is set)')
|
||||||
|
minetest.register_abm({
|
||||||
nodenames = {"group:crumbly", "group:snappy", "group:cracky", "group:choppy"},
|
nodenames = {"group:crumbly", "group:snappy", "group:cracky", "group:choppy"},
|
||||||
neighbors = {"default:air"},
|
neighbors = {"default:air"},
|
||||||
interval = 10.0,
|
interval = 10.0,
|
||||||
chance = 80,
|
chance = 80,
|
||||||
action = function (pos, node, active_object_count, active_object_count_wider)
|
action = function (pos, node)
|
||||||
if weather == "snow" then
|
if weather.type == "weather:snow" then
|
||||||
if minetest.registered_nodes[node.name].drawtype == "normal"
|
if minetest.registered_nodes[node.name].drawtype == "normal"
|
||||||
or minetest.registered_nodes[node.name].drawtype == "allfaces_optional" then
|
or minetest.registered_nodes[node.name].drawtype == "allfaces_optional" then
|
||||||
local np = vector.add(pos, {x=0, y=1, z=0})
|
local np = vector.add(pos, {x=0, y=1, z=0})
|
||||||
|
@ -44,5 +46,5 @@ minetest.register_abm({
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
]]
|
end
|
||||||
|
|
Loading…
Reference in New Issue