Disable iris code when connected to tollan gate

This commit is contained in:
2026-01-02 14:43:08 -05:00
parent 693064834c
commit b1cf36663b

View File

@ -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