Fix: Placing nodes in the air using butterflies (#2786)

This commit is contained in:
randomMesh 2020-12-02 18:47:34 +01:00
parent 29866dbcb3
commit 30a00f0a01
2 changed files with 14 additions and 2 deletions

View file

@ -31,7 +31,7 @@ for i in ipairs (butter_list) do
waving = 1,
paramtype = "light",
sunlight_propagates = true,
buildable_to = true,
buildable_to = false,
walkable = false,
groups = {catchable = 1},
selection_box = {
@ -57,6 +57,12 @@ for i in ipairs (butter_list) do
minetest.set_node(pos, {name = "butterflies:hidden_butterfly_"..name})
end
minetest.get_node_timer(pos):start(30)
end,
on_rightclick = function(...)
return false
end,
on_punch = function(pos, ...)
minetest.remove_node(pos)
end
})

View file

@ -61,7 +61,7 @@ minetest.register_node("fireflies:hidden_firefly", {
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
buildable_to = false,
drop = "",
groups = {not_in_creative_inventory = 1},
floodable = true,
@ -83,6 +83,12 @@ minetest.register_node("fireflies:hidden_firefly", {
minetest.set_node(pos, {name = "fireflies:firefly"})
end
minetest.get_node_timer(pos):start(30)
end,
on_rightclick = function(...)
return false
end,
on_punch = function(pos, ...)
minetest.remove_node(pos)
end
})