mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-08-20 04:54:09 +02:00
Silence warnings when ui is not enabled
This commit is contained in:
parent
e75af55f7e
commit
f07f0507e2
@ -2,14 +2,14 @@
|
|||||||
local S = minetest.get_translator(minetest.get_current_modname())
|
local S = minetest.get_translator(minetest.get_current_modname())
|
||||||
local F = minetest.formspec_escape
|
local F = minetest.formspec_escape
|
||||||
local has_technic = minetest.get_modpath("technic") ~= nil
|
local has_technic = minetest.get_modpath("technic") ~= nil
|
||||||
local ui = unified_inventory
|
|
||||||
|
|
||||||
if not minetest.global_exists("unified_inventory") then
|
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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if unified_inventory.sfinv_compat_layer then
|
local ui = unified_inventory
|
||||||
|
if ui.sfinv_compat_layer then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
### init.lua ###
|
### init.lua ###
|
||||||
|
|
||||||
3d Armor=Armure 3d
|
3d Armor=Armure 3d
|
||||||
3d_armor_ui: Mod loaded but unused.=3d_armor_ui : Mod chargé mais inutilisé.
|
|
||||||
Armor=Armure
|
Armor=Armure
|
||||||
Armor not initialized!=Armure non initialisée !
|
Armor not initialized!=Armure non initialisée !
|
||||||
Fire=Feu
|
Fire=Feu
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
### init.lua ###
|
### init.lua ###
|
||||||
|
|
||||||
3d Armor=
|
3d Armor=
|
||||||
3d_armor_ui: Mod loaded but unused.=
|
|
||||||
Armor=
|
Armor=
|
||||||
Armor not initialized!=
|
Armor not initialized!=
|
||||||
Fire=
|
Fire=
|
||||||
|
Loading…
Reference in New Issue
Block a user