Skip to content

Commit

Permalink
Silence warnings when ui is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Apr 15, 2021
1 parent e75af55 commit f07f050
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions 3d_armor_ui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion 3d_armor_ui/locale/3d_armor_ui.fr.tr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion 3d_armor_ui/locale/template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
### init.lua ###

3d Armor=
3d_armor_ui: Mod loaded but unused.=
Armor=
Armor not initialized!=
Fire=
Expand Down

0 comments on commit f07f050

Please sign in to comment.