From b185b9a61fd80bf995d53624ae58b6078fbfd169 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Thu, 18 Dec 2014 20:13:33 +0100 Subject: [PATCH] Oooops - Missing modification on dungeon masters, I was exluding node only if I had to includ them... Things are correct now. --- mods/mobs/dungeonmaster.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mods/mobs/dungeonmaster.lua b/mods/mobs/dungeonmaster.lua index 5d713696..d632ae90 100644 --- a/mods/mobs/dungeonmaster.lua +++ b/mods/mobs/dungeonmaster.lua @@ -107,13 +107,14 @@ mobs:register_arrow("mobs:fireball", { for dz=-1,1 do local p = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz} local n = minetest.get_node(p).name - local including = minetest.registered_nodes[n].groups["unbreakable"] ~= nil + local excluding = minetest.registered_nodes[n].groups["unbreakable"] ~= nil + or n:split(":")[1] == "nether" for _,i in ipairs(excluded) do - if i == n then including = false end + if i == n then including = true end end --if p.y < -19600 and including and n:split(":")[1] == "nether" then - if including then + if excluding then return end if n ~= "default:obsidian" and n ~= "ethereal:obsidian_brick" then