Use mod.conf for dependencies and description

This commit is contained in:
Panquesito7 2019-10-15 19:59:50 -05:00
parent 883a8484b5
commit c921592542
4 changed files with 4 additions and 5 deletions

View File

@ -1,2 +0,0 @@
default?
fire?

View File

@ -1 +0,0 @@
A mod that adds thunder and lightning effects.

View File

@ -61,7 +61,7 @@ local function choose_pos(pos)
local r = rng:next(1, playercount)
local randomplayer = playerlist[r]
pos = randomplayer:getpos()
pos = randomplayer:get_pos()
-- avoid striking underground
if pos.y < -20 then
@ -226,4 +226,4 @@ minetest.after(5, function()
minetest.after(rng:next(lightning.interval_low,
lightning.interval_high), lightning.strike)
end
end)
end)

View File

@ -1 +1,3 @@
name = lightning
optional_depends = default, fire
description = A mod that adds thunder and lightning effects.