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