From 99eec7d99617516fbb33ad90809eb73c33c1e9ae Mon Sep 17 00:00:00 2001 From: cron Date: Sun, 10 Jan 2021 20:34:43 +0000 Subject: [PATCH] scaffold: fix to use the ymodified dircoord --- clientmods/scaffold/init.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/clientmods/scaffold/init.lua b/clientmods/scaffold/init.lua index c1ad3ed29..72ba7b5a9 100644 --- a/clientmods/scaffold/init.lua +++ b/clientmods/scaffold/init.lua @@ -335,9 +335,10 @@ end end) scaffold.register_template_scaffold("TriScaffold", "scaffold_three_wide", function(pos) scaffold.place_if_able(pos) - scaffold.place_if_able(turtle.dircoord(0, -1, 1)) - scaffold.place_if_able(turtle.dircoord(0, -1, -1)) + scaffold.place_if_able(turtle.dircoord(0, 0, 1)) + scaffold.place_if_able(turtle.dircoord(0, 0, -1)) end) + scaffold.register_template_scaffold("WallBot", "scaffold_behind", function(pos) minetest.settings:set_bool('scaffold_lockyaw',true) minetest.settings:set('movement_speed_walk',1) @@ -438,10 +439,10 @@ end scaffold.register_template_scaffold("QuintScaffold", "scaffold_five_wide", function(pos) scaffold.place_if_able(pos) - scaffold.place_if_able(turtle.dircoord(0, -1, 1)) - scaffold.place_if_able(turtle.dircoord(0, -1, -1)) - scaffold.place_if_able(turtle.dircoord(0, -1, 2)) - scaffold.place_if_able(turtle.dircoord(0, -1, -2)) + scaffold.place_if_able(turtle.dircoord(0, 0, 1)) + scaffold.place_if_able(turtle.dircoord(0, 0, -1)) + scaffold.place_if_able(turtle.dircoord(0, 0, 2)) + scaffold.place_if_able(turtle.dircoord(0, 0, -2)) end) end