mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-25 18:30:23 +01:00
Revert "catch nil return from facedir_to_dir() in tube autoplace code"
This reverts commit 4f9c7a43c9
.
This commit is contained in:
parent
4f9c7a43c9
commit
ebfa12205a
@ -29,7 +29,7 @@ end
|
|||||||
--a function for determining which side of the node we are on
|
--a function for determining which side of the node we are on
|
||||||
local function nodeside(node, tubedir)
|
local function nodeside(node, tubedir)
|
||||||
--get a vector pointing back
|
--get a vector pointing back
|
||||||
local backdir = minetest.facedir_to_dir(node.param2) or {}
|
local backdir = minetest.facedir_to_dir(node.param2)
|
||||||
|
|
||||||
--check whether the vector is equivalent to the tube direction; if it is, the tube's on the backside
|
--check whether the vector is equivalent to the tube direction; if it is, the tube's on the backside
|
||||||
if backdir.x == tubedir.x and backdir.y == tubedir.y and backdir.z == tubedir.z then
|
if backdir.x == tubedir.x and backdir.y == tubedir.y and backdir.z == tubedir.z then
|
||||||
|
Loading…
Reference in New Issue
Block a user