From 7b6333a9afbd74c63a1c0558c07dafd5d6fbe494 Mon Sep 17 00:00:00 2001 From: h4ml3t <54187342+h4ml3t@users.noreply.github.com> Date: Sun, 1 Dec 2019 18:37:47 +0100 Subject: [PATCH] Added support for campfire --- depends.txt | 1 + init.lua | 12 +++++++----- mod.conf | 4 ++++ 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 mod.conf diff --git a/depends.txt b/depends.txt index 150cb10..f0c0149 100644 --- a/depends.txt +++ b/depends.txt @@ -1,3 +1,4 @@ default fire xdecor? +campfire? diff --git a/init.lua b/init.lua index 09d91ea..41664e5 100644 --- a/init.lua +++ b/init.lua @@ -1,11 +1,11 @@ --[[ Mod HardTorch para Minetest Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine) - + Recebeste uma cópia da GNU Lesser General Public License junto com esse software, - se não, veja em . - + se não, veja em . + Inicializador de scripts ]] @@ -80,5 +80,7 @@ hardtorch.fontes_de_fogo["default:lava_flowing"] = true hardtorch.fontes_de_fogo["default:lava_source"] = true hardtorch.fontes_de_fogo["fire:basic_flame"] = true hardtorch.fontes_de_fogo["fire:permanent_flame"] = true - - + +if minetest.get_modpath("campfire") then + hardtorch.fontes_de_fogo["campfire:campfire_active"] = true +end diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..37b12df --- /dev/null +++ b/mod.conf @@ -0,0 +1,4 @@ +name = hardtorch +description = Tochas realistas (Realistic torchs) +depends = default, fire +optional_depends = xdecor, campfire