From d4f2e188ab88f6b6b9e0f99739fc62a6764c0262 Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Fri, 1 Jul 2022 15:58:33 -0400 Subject: [PATCH] fix screenshot warning --- screenshot.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/screenshot.lua b/screenshot.lua index 28a8c25..fff36c8 100644 --- a/screenshot.lua +++ b/screenshot.lua @@ -145,7 +145,8 @@ minetest.register_chatcommand("make-scene", { The following is a search/replace command suitable for vi (/vim) or sed, to convert minetest log messages to equivalent lua commands: -s/.*\(\(moretrees\|default\)[^ ]*\) at (\([-0-9]\+\),\([-0-9]\+\),\([-0-9]\+\)).*/\t\tminetest.place_node({x=\3, y=\4, z=\5}, {name="\1"})/ +s/.*\(\(moretrees\|default\)[^ ]*\) at + (\([-0-9]\+\),\([-0-9]\+\),\([-0-9]\+\)).*/\t\tminetest.place_node({x=\3, y=\4, z=\5}, {name="\1"})/ E.g. a minetest log line of the following kind: 2016-07-03 11:30:50: ACTION[Server]: singleplayer places node moretrees:rubber_tree_sapling at (760,5,-223)