Merge pull request #1079 from SkyBlockDev/main

fix: iconBigintToHash hashes which start with 0
This commit is contained in:
ITOH
2021-07-10 15:53:48 +01:00
committed by GitHub

View File

@@ -13,6 +13,6 @@ export function iconHashToBigInt(hash: string) {
}
export function iconBigintToHash(icon: bigint, animated = true) {
const hash = icon.toString(16);
const hash = icon.toString(16).padStart(32, "0");
return `${animated ? "a_" : ""}${hash}`;
}