From 1e9e7582957b4b931022c76e3e9c3f09e1d8f79d Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Fri, 23 Nov 2018 22:14:46 +0100 Subject: [PATCH] =?UTF-8?q?Remplace=20la=20torche=20normale=20par=20la=20v?= =?UTF-8?q?ersion=20murale=20quand=20lanc=C3=A9e=20avec=20un=20arc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- torch_arrow.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/torch_arrow.lua b/torch_arrow.lua index 0de170a..b19bccb 100644 --- a/torch_arrow.lua +++ b/torch_arrow.lua @@ -76,7 +76,11 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime) if not string.find(node.name, "water") and not string.find(node.name, "lava") and not string.find(node.name, "torch") then local dir=vector.direction(self.lastpos, pos) local wall=minetest.dir_to_wallmounted(dir) - minetest.add_node(self.lastpos, {name="default:torch", param2 = wall}) + if wall ~= 1 and wall ~= 0 then + minetest.add_node(self.lastpos, {name="default:torch_wall", param2 = wall}) + else + minetest.add_node(self.lastpos, {name="default:torch", param2 = wall}) + end else local toughness = 0.9 if math.random() < toughness then