mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-02 07:43:48 +01:00
Make fire by lightning rare again
parent
f1cfee9c78
commit
80ea7595b6
@ -150,10 +150,13 @@ lightning.strike = function(pos)
|
|||||||
pos2.y = pos2.y + 1/2
|
pos2.y = pos2.y + 1/2
|
||||||
if minetest.get_item_group(minetest.get_node({x = pos2.x, y = pos2.y - 1, z = pos2.z}).name, "liquid") < 1 then
|
if minetest.get_item_group(minetest.get_node({x = pos2.x, y = pos2.y - 1, z = pos2.z}).name, "liquid") < 1 then
|
||||||
if minetest.get_node(pos2).name == "air" then
|
if minetest.get_node(pos2).name == "air" then
|
||||||
-- cause a fire
|
-- Rarely cause a fire
|
||||||
|
-- TODO: Always cause a fire, but the rain should put out fires then
|
||||||
|
if rng:next(1, 100) == 1 then
|
||||||
minetest.set_node(pos2, {name = "mcl_fire:fire"})
|
minetest.set_node(pos2, {name = "mcl_fire:fire"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user