1
0
mirror of https://github.com/t-affeldt/regional_weather.git synced 2025-07-17 16:00:35 +02:00

Tweak weather conditions

This commit is contained in:
Till Affeldt
2020-04-13 13:40:36 +02:00
parent 5b3ddf895c
commit c43e972e83
6 changed files with 12 additions and 10 deletions

View File

@ -3,6 +3,8 @@ if not minetest.get_modpath("lightning") then return end
local LIGHTNING_CHANCE = 10
lightning.auto = false
local rng = PcgRandom(82492402425)
local function handle_effect(player_data)
for playername, data in pairs(player_data) do
local player = minetest.get_player_by_name(playername)