mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 06:01:38 -09:00
fix qhash closure
This commit is contained in:
parent
5ee3e7d97f
commit
ab2da74aac
@ -1227,7 +1227,7 @@ const modapi_postinit = "(" + (() => {
|
||||
easyStaticPropAlias("net.minecraft.item.Item", "REGISTRY", "itemRegistry");
|
||||
}
|
||||
|
||||
ModAPI.util.qhash = function qhash(txt, arr, interval) {
|
||||
function qhash(txt, arr, interval) {
|
||||
arr ||= [];
|
||||
interval ||= 32767;
|
||||
// var interval = 4095; //used to be 4095 - arr.length, but that increases incompatibility based on load order and other circumstances
|
||||
@ -1248,6 +1248,7 @@ const modapi_postinit = "(" + (() => {
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
ModAPI.util.qhash = qhash;
|
||||
|
||||
|
||||
ModAPI.keygen = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user