fix: rounding issue breaking encryption

This commit is contained in:
Raymond
2026-05-31 00:11:51 -04:00
parent 06eec89dfe
commit 72c1f48bdb

View File

@@ -37,7 +37,7 @@ class CompressionFilter(
}
fun truncateVersion(version: Number): Number {
return floor(version.toFloat() / 5.0) * 5;
return (floor(version.toFloat() / 5.0) * 5).toInt();
}
var keys = gameData.chu3GameEncryption + gameData.mai2GameEncryption + gameData.ogkGameEncryption