From 1f88969175639f2596865c9f9617d28db36d1bc0 Mon Sep 17 00:00:00 2001 From: upsilon Date: Thu, 2 Apr 2020 22:08:42 +0200 Subject: [PATCH] Remove log message translation Aside from typos in the code that caused the mod to crash when the log messages were produced, there seems to be a bug in the way translated strings are displayed in the logs. This requires further investigation, meanwhile, this commit prevents the crash. --- init.lua | 6 +++--- locale/template.txt | 3 --- locale/throwing_arrows.fr.tr | 3 --- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/init.lua b/init.lua index a6505b3..bfa7ae9 100644 --- a/init.lua +++ b/init.lua @@ -210,7 +210,7 @@ if get_setting("teleport_arrow") then on_hit_sound = "throwing_teleport_arrow", on_hit = function(self, _, last_pos, _, _, hitter) if minetest.get_node(last_pos).name ~= "air" then - minetest.log("warning", S("[throwing] BUG: node at @1 was not air", last_pos)) + minetest.log("warning", "[throwing] BUG: node at "..minetest.pos_to_string(last_pos).." was not air") return end @@ -232,7 +232,7 @@ if get_setting("fire_arrow") then on_hit_sound = "default_place_node", on_hit = function(self, pos, last_pos, _, _, hitter) if minetest.get_node(last_pos).name ~= "air" then - minetest.log(S("warning", "[throwing] BUG: node at @1 was not air", last_pos)) + minetest.log("warning", "[throwing] BUG: node at "..minetest.pos_to_string(last_pos).." was not air") return end @@ -261,7 +261,7 @@ if get_setting("build_arrow") then on_hit_sound = "throwing_build_arrow", on_hit = function(self, pos, last_pos, _, _, hitter) if minetest.get_node(last_pos).name ~= "air" then - minetest.log(S("warning", "[throwing] BUG: node at @1 was not air", last_pos)) + minetest.log("warning", "[throwing] BUG: node at "..minetest.pos_to_string(last_pos).." was not air") return end diff --git a/locale/template.txt b/locale/template.txt index 07c2b71..b1bf690 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -23,6 +23,3 @@ Teleport Arrow= Torch Arrow= Build Arrow= Drop Arrow= - -## Warnings -[throwing] BUG: node at @1 was not air= diff --git a/locale/throwing_arrows.fr.tr b/locale/throwing_arrows.fr.tr index 53ebc2e..ed9557a 100644 --- a/locale/throwing_arrows.fr.tr +++ b/locale/throwing_arrows.fr.tr @@ -23,6 +23,3 @@ Teleport Arrow=Flèche de téléportation Torch Arrow=Flèche-torche Build Arrow=Flèche de construction Drop Arrow=Flèche de livraison - -## Warnings -[throwing] BUG: node at @1 was not air=[throwing] BUG : le bloc à @1 n’était pas de l’air