1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-12-26 02:30:39 +01:00

Silence warnings when ui is not enabled

This commit is contained in:
SmallJoker 2021-04-15 19:03:21 +02:00
parent e75af55f7e
commit f07f0507e2
3 changed files with 3 additions and 5 deletions

View File

@ -2,14 +2,14 @@
local S = minetest.get_translator(minetest.get_current_modname())
local F = minetest.formspec_escape
local has_technic = minetest.get_modpath("technic") ~= nil
local ui = unified_inventory
if not minetest.global_exists("unified_inventory") then
minetest.log("warning", S("3d_armor_ui: Mod loaded but unused."))
minetest.log("warning", "3d_armor_ui: Mod loaded but unused.")
return
end
if unified_inventory.sfinv_compat_layer then
local ui = unified_inventory
if ui.sfinv_compat_layer then
return
end

View File

@ -4,7 +4,6 @@
### init.lua ###
3d Armor=Armure 3d
3d_armor_ui: Mod loaded but unused.=3d_armor_ui : Mod chargé mais inutilisé.
Armor=Armure
Armor not initialized!=Armure non initialisée !
Fire=Feu

View File

@ -4,7 +4,6 @@
### init.lua ###
3d Armor=
3d_armor_ui: Mod loaded but unused.=
Armor=
Armor not initialized!=
Fire=