From b8e90803be8d29b2a5f33a6fb2d4423e84e8b731 Mon Sep 17 00:00:00 2001 From: Tai Kedzierski Date: Wed, 2 Jan 2019 22:54:07 +0000 Subject: [PATCH] fix duck webs going everywhere --- api/darts.lua | 5 +++-- api/main_api.lua | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/darts.lua b/api/darts.lua index 8af54b8..7af09f0 100644 --- a/api/darts.lua +++ b/api/darts.lua @@ -174,8 +174,9 @@ function explosion_web(pos, webtype) local k = {x=i,y=j+1,z=k} local current = minetest.env:get_node(p).name local ontop = minetest.env:get_node(k).name - if not nssm.unswappable_node(k) then - minetest.set_node(k, {name=webtype}) + if current == "air" then + --if not nssm.unswappable_node(p) then -- replaces to many nodes + minetest.set_node(p, {name=webtype}) end end end diff --git a/api/main_api.lua b/api/main_api.lua index 34a4b0f..6355e61 100644 --- a/api/main_api.lua +++ b/api/main_api.lua @@ -10,6 +10,7 @@ local no_swap_nodes = { "ignore", "default:chest_locked", "nssm:mob_inhibitor", + "nssm_server:mob_inhibitor", } nssm.unswappable_node = function (pos, node_list)