summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api.lua2
-rw-r--r--bags.lua2
-rw-r--r--internal.lua2
-rw-r--r--register.lua2
-rw-r--r--waypoints.lua2
5 files changed, 5 insertions, 5 deletions
diff --git a/api.lua b/api.lua
index 1ab19fc..7ee5b9e 100644
--- a/api.lua
+++ b/api.lua
@@ -1,5 +1,5 @@
local S
-if intllib then
+if rawget(_G, "intllib") then
S = intllib.Getter()
else
S = function(s) return s end
diff --git a/bags.lua b/bags.lua
index 10196f5..b2ef757 100644
--- a/bags.lua
+++ b/bags.lua
@@ -4,7 +4,7 @@
-- License: GPLv3
local S
-if intllib then
+if rawget(_G, "intllib") then
S = intllib.Getter()
else
S = function(s) return s end
diff --git a/internal.lua b/internal.lua
index 281653e..50150b7 100644
--- a/internal.lua
+++ b/internal.lua
@@ -1,5 +1,5 @@
local S
-if intllib then
+if rawget(_G, "intllib") then
S = intllib.Getter()
else
S = function(s) return s end
diff --git a/register.lua b/register.lua
index bc379ee..5a77bc0 100644
--- a/register.lua
+++ b/register.lua
@@ -1,5 +1,5 @@
local S
-if intllib then
+if rawget(_G, "intllib") then
S = intllib.Getter()
else
S = function(s) return s end
diff --git a/waypoints.lua b/waypoints.lua
index 94f9f11..aef9a2f 100644
--- a/waypoints.lua
+++ b/waypoints.lua
@@ -1,5 +1,5 @@
local S
-if intllib then
+if rawget(_G, "intllib") then
S = intllib.Getter()
else
S = function(s) return s end