diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-02-28 15:28:36 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-02-28 15:28:36 +0000 |
commit | cd40602a101c261066653b9cd16c05ad17fc0868 (patch) | |
tree | 145d2c1298d100c4dd09fef18dcd4a3af434c877 /water.lua | |
parent | 4f318a941212a174d75994d66f54dc8d67e05fce (diff) |
added support for Real Torch mod
Diffstat (limited to 'water.lua')
-rw-r--r-- | water.lua | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -125,9 +125,16 @@ minetest.register_abm({ -- If torch touching water then drop as item (when enabled) if ethereal.torchdrop == true then +local torch_drop = "default:torch" + +if minetest.get_modpath("real_torch") then + torch_drop = "real_torch:torch" +end + minetest.register_abm({ label = "Ethereal drop torch", - nodenames = {"default:torch", "default:torch_wall", "default:torch_ceiling"}, + nodenames = {"default:torch", "default:torch_wall", "default:torch_ceiling", + "real_torch:torch", "real_torch:torch_wall", "real_torch:torch_ceiling"}, neighbors = {"group:water"}, interval = 5, chance = 1, @@ -154,7 +161,7 @@ end minetest.set_node(pos, {name = "air"}) - minetest.add_item(pos, {name = "default:torch"}) + minetest.add_item(pos, {name = torch_drop}) end end, }) |