From 6db01ea5fe0c021b6cdcfb0f5dcb774c7dc994b3 Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Sat, 1 Jan 2022 12:33:02 -0500 Subject: [PATCH] Fix `__len` metamethod of `KoboldWorldInfoFolderSelector` --- bridge.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge.lua b/bridge.lua index db1843ca..460cbf8d 100644 --- a/bridge.lua +++ b/bridge.lua @@ -615,7 +615,7 @@ return function(_python, _bridged) if not check_validity(t) then return 0 end - return #kobold.worldinfo + return _python.builtins.len(bridged.vars.wifolders_l) end KoboldWorldInfoFolderSelector_mt._kobold_next = KoboldWorldInfoEntry_mt._kobold_next