Make sure to put placeholder particles on torches.
This commit is contained in:
parent
162e8d11c1
commit
2cdbe4a38a
@ -734,7 +734,7 @@ minetest.register_tool("tools:reveal", {
|
|||||||
local limit = 32
|
local limit = 32
|
||||||
local ppos = vector.floor(digger:get_pos())
|
local ppos = vector.floor(digger:get_pos())
|
||||||
local nodeslist = {}
|
local nodeslist = {}
|
||||||
local needle = {"group:axe", "group:shovel", "group:pickaxe", "group:hand", "nodes:placeholder"}
|
local needle = {"group:axe", "group:shovel", "group:pickaxe", "group:hand", "nodes:placeholder", "group:torch"}
|
||||||
for d = 3, 6 do
|
for d = 3, 6 do
|
||||||
if limit > 0 then
|
if limit > 0 then
|
||||||
local poslist, _ = minetest.find_nodes_in_area(vector.subtract(ppos, d),
|
local poslist, _ = minetest.find_nodes_in_area(vector.subtract(ppos, d),
|
||||||
@ -784,7 +784,7 @@ minetest.register_tool("tools:reveal", {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if node.name == "nodes:placeholder" then
|
if node.name == "nodes:placeholder" or node.name == "torches:torch" or node.name == "torches:torch_wall" then
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local placeable = meta:get_string("placeable")
|
local placeable = meta:get_string("placeable")
|
||||||
if placeable ~= "" then
|
if placeable ~= "" then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user