From cc892b31e6b8ccbf9559ec1d7da22e5bc72646b7 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy <alexsandro.percy@gmail.com> Date: Sat, 30 Nov 2024 18:59:14 -0300 Subject: [PATCH] fix explosion on spawn --- crafts.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crafts.lua b/crafts.lua index ece97d3..8a691a8 100755 --- a/crafts.lua +++ b/crafts.lua @@ -29,7 +29,10 @@ minetest.register_tool("heli:heli", { local staticdata = stack_meta:get_string("staticdata") local pointed_pos = pointed_thing.under - --local node_below = minetest.get_node(pointed_pos).name + local node_below = minetest.get_node(pointed_pos).name + if minetest.registered_nodes[node_below].drawtype == "plantlike" then + return + end --local nodedef = minetest.registered_nodes[node_below] pointed_pos.y=pointed_pos.y+0.5