libs: skip library loading if already existing

This commit is contained in:
shagu
2018-09-30 13:44:03 +02:00
parent 2c66e5c0c2
commit 0e2303ae1e
4 changed files with 13 additions and 1 deletions
+3
View File
@@ -1,6 +1,9 @@
-- load pfUI environment
setfenv(1, pfUI:GetEnvironment())
-- return instantly when another libspell is already active
if pfUI.api.libspell then return end
local scanner = libtipscan:GetScanner("libspell")
local libspell = {}