Fixed mirror dimension detection for off-grid rooms like Devil Deal
This commit is contained in:
1 parent
8bea7679d7
commit
36d7652732
1 file changed
+1
-1
@@ -377,7 +377,7 @@ local function IsMirror()
|
||||
local level = game:GetLevel()
|
||||
local id = level:GetCurrentRoomIndex()
|
||||
|
||||
return GetPtrHash(level:GetRoomByIdx(id)) == GetPtrHash(level:GetRoomByIdx(id, 1))
|
||||
return id >=0 and GetPtrHash(level:GetRoomByIdx(id)) == GetPtrHash(level:GetRoomByIdx(id, 1))
|
||||
end
|
||||
|
||||
local isMirrorRoom = false
|
||||
|
||||
Reference in new issue
Block a user