mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-24 14:41:18 -09:00
emergency fix
This commit is contained in:
parent
386b6a44cd
commit
c6496fc672
14
postinit.js
14
postinit.js
@ -132,13 +132,6 @@ globalThis.modapi_postinit = "(" + (() => {
|
|||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
ModAPI.util.getIdFromItem = easyStaticMethod("net.minecraft.item.Item", "getIdFromItem", true);
|
|
||||||
ModAPI.util.getItemById = easyStaticMethod("net.minecraft.item.Item", "getItemById", false);
|
|
||||||
ModAPI.util.getItemFromBlock = easyStaticMethod("net.minecraft.item.Item", "getItemFromBlock", true);
|
|
||||||
ModAPI.util.getBlockById = easyStaticMethod("net.minecraft.block.Block", "getBlockById", false);
|
|
||||||
ModAPI.util.getBlockFromItem = easyStaticMethod("net.minecraft.block.Block", "getBlockFromItem", true);
|
|
||||||
ModAPI.util.getIdFromBlock = easyStaticMethod("net.minecraft.block.Block", "getIdFromBlock", true);
|
|
||||||
|
|
||||||
ModAPI.util.wrap = function (outputValue, target, corrective, disableFunctions) {
|
ModAPI.util.wrap = function (outputValue, target, corrective, disableFunctions) {
|
||||||
target ||= {};
|
target ||= {};
|
||||||
corrective ||= false;
|
corrective ||= false;
|
||||||
@ -994,6 +987,13 @@ globalThis.modapi_postinit = "(" + (() => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ModAPI.util.getIdFromItem = easyStaticMethod("net.minecraft.item.Item", "getIdFromItem", true);
|
||||||
|
ModAPI.util.getItemById = easyStaticMethod("net.minecraft.item.Item", "getItemById", false);
|
||||||
|
ModAPI.util.getItemFromBlock = easyStaticMethod("net.minecraft.item.Item", "getItemFromBlock", true);
|
||||||
|
ModAPI.util.getBlockById = easyStaticMethod("net.minecraft.block.Block", "getBlockById", false);
|
||||||
|
ModAPI.util.getBlockFromItem = easyStaticMethod("net.minecraft.block.Block", "getBlockFromItem", true);
|
||||||
|
ModAPI.util.getIdFromBlock = easyStaticMethod("net.minecraft.block.Block", "getIdFromBlock", true);
|
||||||
|
|
||||||
function qhash(txt, arr) {
|
function qhash(txt, arr) {
|
||||||
var interval = 4095; //used to be 4095 - arr.length, but that increases incompatibility based on load order and otehr circumstances
|
var interval = 4095; //used to be 4095 - arr.length, but that increases incompatibility based on load order and otehr circumstances
|
||||||
if (arr.length >= 4095) {
|
if (arr.length >= 4095) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user