mirror of
https://github.com/minetest-mods/technic.git
synced 2024-09-21 03:40:28 +02:00
update code
This commit is contained in:
parent
bcf5db1a69
commit
4f80744673
|
@ -644,7 +644,7 @@ local function template_connected(pos,c,connectors)
|
||||||
for _,vect in ipairs({{x=0,y=1,z=0},{x=0,y=0,z=1},{x=0,y=0,z=-1},{x=1,y=0,z=0},{x=-1,y=0,z=0},{x=0,y=-1,z=0}}) do
|
for _,vect in ipairs({{x=0,y=1,z=0},{x=0,y=0,z=1},{x=0,y=0,z=-1},{x=1,y=0,z=0},{x=-1,y=0,z=0},{x=0,y=-1,z=0}}) do
|
||||||
local pos1=vector.add(pos,vect)
|
local pos1=vector.add(pos,vect)
|
||||||
local nodename=minetest.get_node(pos1).name
|
local nodename=minetest.get_node(pos1).name
|
||||||
if not(pos_in_list(c,pos1))
|
if not pos_in_list(c,pos1)
|
||||||
and (nodename=="technic:template" or nodename == "technic:template_connector")then
|
and (nodename=="technic:template" or nodename == "technic:template_connector")then
|
||||||
local meta = minetest.get_meta(pos1)
|
local meta = minetest.get_meta(pos1)
|
||||||
if meta:get_string("connected") == "" then
|
if meta:get_string("connected") == "" then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user