parent
31f76337a9
commit
85388696c7
@ -304,7 +304,7 @@ function telemosaic.rightclick(pos, node, player, itemstack, pointed_thing)
|
|||||||
elseif state == "off" or player:get_player_control().sneak then
|
elseif state == "off" or player:get_player_control().sneak then
|
||||||
-- Allow player to build on telemosaic
|
-- Allow player to build on telemosaic
|
||||||
local def = minetest.registered_nodes[item]
|
local def = minetest.registered_nodes[item]
|
||||||
if def and def.on_place and not vector.equals(pos, pointed_thing.above) then
|
if def and def.on_place and pointed_thing and not vector.equals(pos, pointed_thing.above) then
|
||||||
-- Need to create a fake pointed_thing to prevent recursion
|
-- Need to create a fake pointed_thing to prevent recursion
|
||||||
local new_pointed_thing = {
|
local new_pointed_thing = {
|
||||||
type = "node",
|
type = "node",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user