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
|
||||
end
|
||||
|
||||
-- Check iris availability
|
||||
if gate.getIris() == nil then
|
||||
-- Check gate type and iris availability
|
||||
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")
|
||||
config.irisEnabled = false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user