From 5d94e03351e416529ebb002b49646726f62de0c9 Mon Sep 17 00:00:00 2001 From: ac-minetest Date: Fri, 27 Nov 2020 16:58:55 +0100 Subject: [PATCH 1/2] boost angle fix --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 2b5b0b8..6352e2d 100644 --- a/init.lua +++ b/init.lua @@ -26,7 +26,7 @@ basic_robot.bad_inventory_blocks = { -- disallow taking from these nodes invento basic_robot.http_api = minetest.request_http_api(); -basic_robot.version = "2020/10/14a"; +basic_robot.version = "2020/11/27a"; basic_robot.gui = {}; local robogui = basic_robot.gui -- gui management basic_robot.data = {}; -- stores all robot related data @@ -74,7 +74,7 @@ function getSandboxEnv (name) return end local yaw = obj:get_yaw(); - obj:set_velocity({x=v*math.cos(yaw),y=0,z=v*math.sin(yaw)}); + obj:set_velocity({x=-v*math.sin(yaw),y=0,z=v*math.cos(yaw)}); end, turn = { From e237985e8ee619ed27d2ace0f93c7f7d759348b0 Mon Sep 17 00:00:00 2001 From: ac-minetest Date: Fri, 27 Nov 2020 17:16:58 +0100 Subject: [PATCH 2/2] corrupted book fix --- commands.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands.lua b/commands.lua index 14c2c22..7ff9b61 100644 --- a/commands.lua +++ b/commands.lua @@ -444,8 +444,9 @@ basic_robot.commands.write_book = function(name,title,text) -- returns itemstack local data = {} if title == "" or not title then title = "program book "..minetest.get_gametime() end - data.title = title or "" - data.text = text or "" + if text == "" or not text then text = "empty" end + data.text = text + data.title = title data.text_len = #data.text data.page = 1 data.description = title or ""