Disable iris code when connected to tollan gate
This commit is contained in:
10
startup.lua
10
startup.lua
@ -135,8 +135,14 @@ if chatBox == nil and config.enableChatboxDebug then
|
|||||||
config.enableChatboxDebug = false
|
config.enableChatboxDebug = false
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Check iris availability
|
-- Check gate type and iris availability
|
||||||
if gate.getIris() == nil then
|
local gateType = gate.getStargateType()
|
||||||
|
|
||||||
|
-- Tollan gates don't have iris support and will crash if checked
|
||||||
|
if gateType == "sgjourney:tollan_stargate" then
|
||||||
|
print("Tollan Stargate detected - iris functionality disabled")
|
||||||
|
config.irisEnabled = false
|
||||||
|
elseif gate.getIris() == nil then
|
||||||
print("Config has Iris enabled, but there is no iris! Disabling Iris")
|
print("Config has Iris enabled, but there is no iris! Disabling Iris")
|
||||||
config.irisEnabled = false
|
config.irisEnabled = false
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user