From 6867fb5ff0ce95ce94936c0b154d36e8b0287171 Mon Sep 17 00:00:00 2001 From: cora Date: Mon, 21 Oct 2024 07:34:59 +0200 Subject: [PATCH] Add compatibility layer for minetest lightning mod --- mods/COMPAT/lightning/init.lua | 7 +++++++ mods/COMPAT/lightning/mod.conf | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 mods/COMPAT/lightning/init.lua create mode 100644 mods/COMPAT/lightning/mod.conf diff --git a/mods/COMPAT/lightning/init.lua b/mods/COMPAT/lightning/init.lua new file mode 100644 index 000000000..6b39abb90 --- /dev/null +++ b/mods/COMPAT/lightning/init.lua @@ -0,0 +1,7 @@ +lightning = { + auto = true, + effect_range = 500, +} +setmetatable(lightning, { __index = mcl_lightning }) + +minetest.register_alias("lightning:dying_flame", "mcl_fire:fire") diff --git a/mods/COMPAT/lightning/mod.conf b/mods/COMPAT/lightning/mod.conf new file mode 100644 index 000000000..dab0da7ac --- /dev/null +++ b/mods/COMPAT/lightning/mod.conf @@ -0,0 +1,2 @@ +name = lightning +depends = mcl_lightning