From 01f2b9c89da1a6e97e5763518ad0f34f4a84236a Mon Sep 17 00:00:00 2001 From: Panquesito7 Date: Tue, 15 Oct 2019 19:59:50 -0500 Subject: [PATCH] Use mod.conf for dependencies and description --- depends.txt | 2 -- description.txt | 1 - init.lua | 4 ++-- mod.conf | 2 ++ 4 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 depends.txt delete mode 100644 description.txt diff --git a/depends.txt b/depends.txt deleted file mode 100644 index 09060cc..0000000 --- a/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -default? -fire? diff --git a/description.txt b/description.txt deleted file mode 100644 index 98fdb36..0000000 --- a/description.txt +++ /dev/null @@ -1 +0,0 @@ -A mod that adds thunder and lightning effects. diff --git a/init.lua b/init.lua index cad2988..e254d22 100644 --- a/init.lua +++ b/init.lua @@ -63,7 +63,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 @@ -232,4 +232,4 @@ minetest.after(5, function() minetest.after(rng:next(lightning.interval_low, lightning.interval_high), lightning.strike) end -end) +end) \ No newline at end of file diff --git a/mod.conf b/mod.conf index 948a407..1b5815a 100644 --- a/mod.conf +++ b/mod.conf @@ -1 +1,3 @@ name = lightning +optional_depends = default, fire +description = A mod that adds thunder and lightning effects. \ No newline at end of file