Quantcast

Use ResourceServer if it's available.

Scott Sibley [09-01-10 - 17:46]
Use ResourceServer if it's available.
Filename
Modules/Text.lua
diff --git a/Modules/Text.lua b/Modules/Text.lua
index d91b8d1..9420034 100644
--- a/Modules/Text.lua
+++ b/Modules/Text.lua
@@ -413,6 +413,7 @@ function mod:OnInitialize()
 	-- create our core object. Note that we must provide it with an LCD after it is created.

 	self.core = LibCore:New(mod, environment, self:GetName(), {[self:GetName()] = {}}, "text", StarTip.db.profile.errorLevel)
+	if ResourceServer then ResourceServer:New(environment) end
 	self.lcd = LCDText:New(self.core, 1, 40, 0, 0, 0, StarTip.db.profile.errorLevel)
 	self.core.lcd = self.lcd