From b36d326e3934bd32cc4a3941327c720b6329fc4f Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Fri, 12 May 2017 17:10:40 -0400 Subject: [PATCH] only alias tnt if tnt is not enabled --- etc/Mods,WIP/mock_tnt/README.txt | 1 + etc/Mods,WIP/mock_tnt/init.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/Mods,WIP/mock_tnt/README.txt b/etc/Mods,WIP/mock_tnt/README.txt index 0b55072..2659c26 100644 --- a/etc/Mods,WIP/mock_tnt/README.txt +++ b/etc/Mods,WIP/mock_tnt/README.txt @@ -9,6 +9,7 @@ Mod for Minetest * Does not harm any block or entity ## Known Issues +* when TNT is enabled, there is no crafting recipe for mock_tnt * also ignite gunpowder with "default:torch", "fire:permanent_flame" (minetest_game only ignites via "fire:basic_flame", "default:lava_source", "default:lava_flowing") -- for some reason torch works already but permanent_flame does not * Make gunpowder ignite via "building_blocks:Fireplace" * Make TNT ignite via neighbors "throwing:arrow_fireworks_blue", "throwing:arrow_fireworks_red" diff --git a/etc/Mods,WIP/mock_tnt/init.lua b/etc/Mods,WIP/mock_tnt/init.lua index 989bc61..79914c9 100644 --- a/etc/Mods,WIP/mock_tnt/init.lua +++ b/etc/Mods,WIP/mock_tnt/init.lua @@ -35,10 +35,10 @@ end -- sounds = default.node_sound_sand_defaults(), -- }) -minetest.register_alias("tnt:tnt", "mock_tnt:mock_tnt") -- Only when "not" to not overlap tnt mod: if not enable_tnt then + minetest.register_alias("tnt:tnt", "mock_tnt:mock_tnt") minetest.register_craft({ output = "mock_tnt:mock_tnt", recipe = {