mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
clear up comment confusion.
This commit is contained in:
parent
ede21a8627
commit
132178b8c7
1 changed files with 2 additions and 2 deletions
|
@ -305,7 +305,7 @@ minetest.register_node(SCAFFOLDING_NAME, {
|
||||||
-- Need to add in a check here... to prevent placing scaffolds against doors, chests, etc.
|
-- Need to add in a check here... to prevent placing scaffolds against doors, chests, etc.
|
||||||
-- Added in a quick check. need to test it.
|
-- Added in a quick check. need to test it.
|
||||||
if node.name ~= SCAFFOLDING_NAME then
|
if node.name ~= SCAFFOLDING_NAME then
|
||||||
-- this is a temp fix... will NOT work in final scaffolding implementation.
|
-- Start temp fix: This is a temp fix... will NOT work in final scaffolding implementation.
|
||||||
-- Use pointed node's on_rightclick function first, if present
|
-- Use pointed node's on_rightclick function first, if present
|
||||||
if placer and not placer:get_player_control().sneak then
|
if placer and not placer:get_player_control().sneak then
|
||||||
if minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].on_rightclick then
|
if minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].on_rightclick then
|
||||||
|
@ -313,7 +313,7 @@ minetest.register_node(SCAFFOLDING_NAME, {
|
||||||
return minetest.registered_nodes[node.name].on_rightclick(pointed.under, node, placer, itemstack) or itemstack
|
return minetest.registered_nodes[node.name].on_rightclick(pointed.under, node, placer, itemstack) or itemstack
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- --------
|
-- End: Temp fix
|
||||||
|
|
||||||
-- A quick check, that may or may not work, to attempt to prevent placing things on the side of other nodes.
|
-- A quick check, that may or may not work, to attempt to prevent placing things on the side of other nodes.
|
||||||
local dir = vector.subtract(pointed.under, pointed.above)
|
local dir = vector.subtract(pointed.under, pointed.above)
|
||||||
|
|
Loading…
Reference in a new issue