Fix applied upstream https://github.com/divVerent/s2tc/commit/86b61ca2e2906297d972e8a4c1e212e3deac99ef