From b1cf36663be59ad0507c1498e1917cd53b1e7ad6 Mon Sep 17 00:00:00 2001 From: Moonlit Productions Date: Fri, 2 Jan 2026 14:43:08 -0500 Subject: [PATCH] Disable iris code when connected to tollan gate --- startup.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/startup.lua b/startup.lua index afa9eb4..8175c30 100644 --- a/startup.lua +++ b/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