summaryrefslogtreecommitdiff
path: root/unified_inventory.lua
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2016-11-14 21:13:32 +0000
committerGitHub <noreply@github.com>2016-11-14 21:13:32 +0000
commitab7206e15050b050257c7e45b804dc9b1352d41d (patch)
tree2d19e626f9d9be8eb8d1f90fbbd9ad8c73f64934 /unified_inventory.lua
parent43da09620ed84f13e86b958e52b5c478f01f5227 (diff)
parentf4a5eb25f6e777637c3516ccd2546a7adafbaa77 (diff)
Fix mod not working with mod security and intllib
Diffstat (limited to 'unified_inventory.lua')
-rw-r--r--unified_inventory.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/unified_inventory.lua b/unified_inventory.lua
index 169cdfe..a4bb02d 100644
--- a/unified_inventory.lua
+++ b/unified_inventory.lua
@@ -1,8 +1,7 @@
if minetest.get_modpath("unified_inventory") ~= nil then
local S
- if (intllib) then
- dofile(minetest.get_modpath("intllib").."/intllib.lua")
- S = intllib.Getter(minetest.get_current_modname())
+ if minetest.get_modpath("intllib") then
+ S = intllib.Getter()
else
S = function ( s ) return s end
end