Make lightning glow in the dark

This commit is contained in:
Wuzzy 2019-03-26 12:24:30 +01:00
parent ba97dfd02f
commit c6e671376d

View file

@ -117,6 +117,7 @@ lightning.strike = function(pos)
-- to make the texture lightning bolt hit exactly in the middle of the -- to make the texture lightning bolt hit exactly in the middle of the
-- texture (e.g. 127/128 on a 256x wide texture) -- texture (e.g. 127/128 on a 256x wide texture)
texture = "lightning_lightning_" .. rng:next(1,3) .. ".png", texture = "lightning_lightning_" .. rng:next(1,3) .. ".png",
glow = minetest.LIGHT_MAX,
}) })
minetest.sound_play({ pos = pos, name = "lightning_thunder", gain = 10, max_hear_distance = 500 }) minetest.sound_play({ pos = pos, name = "lightning_thunder", gain = 10, max_hear_distance = 500 })