backguard compatibility and reusage of i18n from 3d_armor

master
PICCORO Lenz McKAY 2023-01-12 00:01:00 -04:00
parent e408ce2510
commit 4723a16501
1 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,12 @@
-- Use 3d_armor translator to take advantage of existing translations for armor parts
local S = minetest.get_translator("3d_armor")
local S = armor_i18n.gettext
local F = armor_i18n.fgettext
if not minetest.get_modpath("technic_worldgen") then
minetest.log("warning", S("[technic_armor]: Mod loaded but unused."))
return
end
local materials = {}