Fix in node face direction for rotation
This commit is contained in:
parent
ca207c82b0
commit
b28e337928
@ -21,9 +21,9 @@ function electricity.get_node_face_direction(pos)
|
||||
|
||||
face_vector = ({
|
||||
[0] = {[0]={x=0, y=0, z=-1}, [1]={x=0, y=1, z=0}, [2]={x=0, y=-1, z=0}, [3]={x=0, y=0, z=-1}, [4]={x=0, y=0, z=-1}, [5]={x=0, y=0, z=-1}},
|
||||
[1] = {[0]={x=-1, y=0, z=0}, [1]={x=-1, y=0, z=0}, [2]={x=1, y=0, z=0}, [3]={x=0, y=1, z=0}, [4]={x=0, y=-1, z=0}, [5]={x=-1, y=0, z=0}},
|
||||
[1] = {[0]={x=-1, y=0, z=0}, [1]={x=-1, y=0, z=0}, [2]={x=-1, y=0, z=0}, [3]={x=0, y=1, z=0}, [4]={x=0, y=-1, z=0}, [5]={x=1, y=0, z=0}},
|
||||
[2] = {[0]={x=0, y=0, z=1}, [1]={x=0, y=-1, z=0}, [2]={x=0, y=1, z=0}, [3]={x=0, y=0, z=1}, [4]={x=0, y=0, z=1}, [5]={x=0, y=0, z=1}},
|
||||
[3] = {[0]={x=1, y=0, z=0}, [1]={x=1, y=0, z=0}, [2]={x=-1, y=0, z=0}, [3]={x=0, y=-1, z=0}, [4]={x=0, y=1, z=0}, [5]={x=1, y=0, z=0}},
|
||||
[3] = {[0]={x=1, y=0, z=0}, [1]={x=1, y=0, z=0}, [2]={x=1, y=0, z=0}, [3]={x=0, y=-1, z=0}, [4]={x=0, y=1, z=0}, [5]={x=-1, y=0, z=0}},
|
||||
})[param2_m][param2_n]
|
||||
else
|
||||
face_vector = vector.new(1,0,0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user