Update init.lua

math.random requires (lower#,higher#). Switching -25,-30 to -30,-25
master
Jerrod Frost 2018-06-02 16:36:44 -04:00 committed by GitHub
parent 47bbda31bb
commit acf7cd29f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ local apply_weather = function(player, pos, weather_type)
for i=1,25 do
minetest.add_particle({
pos = {x=pos.x+math.random(-10,10), y=pos.y+math.random(12,17), z=pos.z+math.random(-10,10)},
velocity = {x=0, y=math.random(-25,-30), z=0},
velocity = {x=0, y=math.random(-30,-25), z=0},
acceleration = {x=0, y=-1, z=0},
expirationtime = 2,
size = math.random(3,5),
@ -207,4 +207,4 @@ minetest.register_chatcommand("change_weather", {
end
end,
})
end
end