fix explosion on spawn
This commit is contained in:
parent
2e9a443d9f
commit
cc892b31e6
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user