Merge pull request #52 from aleixmine/main

Fixed bug in AsyncSink
This commit is contained in:
ZXMushroom63 2025-01-06 17:12:13 +01:00 committed by GitHub
commit c9ccf2d785
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -161,7 +161,7 @@ ModAPI.meta.credits("By ZXMushroom63");
};
const L10NCheck = ModAPI.util.getMethodFromPackage("net.minecraft.util.StatCollector", "canTranslate");
const originalL10NCheck = ModAPI.hooks.methods[L10NRead];
const originalL10NCheck = ModAPI.hooks.methods[L10NCheck];
ModAPI.hooks.methods[L10NCheck] = function (...args) {
if (AsyncSink.L10N.has(ModAPI.util.ustr(args[0]))) {
return 1;