1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00
- Missing modification on dungeon masters, I was exluding node only if I
  had to includ them... Things are correct now.
This commit is contained in:
LeMagnesium 2014-12-18 20:13:33 +01:00
parent 5314a1d30b
commit b185b9a61f

View File

@ -107,13 +107,14 @@ mobs:register_arrow("mobs:fireball", {
for dz=-1,1 do for dz=-1,1 do
local p = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz} local p = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz}
local n = minetest.get_node(p).name 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 for _,i in ipairs(excluded) do
if i == n then including = false end if i == n then including = true end
end end
--if p.y < -19600 and including and n:split(":")[1] == "nether" then --if p.y < -19600 and including and n:split(":")[1] == "nether" then
if including then if excluding then
return return
end end
if n ~= "default:obsidian" and n ~= "ethereal:obsidian_brick" then if n ~= "default:obsidian" and n ~= "ethereal:obsidian_brick" then