fix explosion on spawn

This commit is contained in:
Alexsandro Percy 2024-11-30 18:59:14 -03:00
parent 2e9a443d9f
commit cc892b31e6

View File

@ -29,7 +29,10 @@ minetest.register_tool("heli:heli", {
local staticdata = stack_meta:get_string("staticdata") local staticdata = stack_meta:get_string("staticdata")
local pointed_pos = pointed_thing.under 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] --local nodedef = minetest.registered_nodes[node_below]
pointed_pos.y=pointed_pos.y+0.5 pointed_pos.y=pointed_pos.y+0.5