renderitem method grabber patch

This commit is contained in:
ZXMushroom63 2025-05-30 17:50:45 +08:00
parent ab2da74aac
commit 1fab99abbf

View File

@ -220,6 +220,7 @@ const modapi_postinit = "(" + (() => {
ModAPI.util.getMethodFromPackage = function (classId, methodName) { ModAPI.util.getMethodFromPackage = function (classId, methodName) {
if (ModAPI.is_1_12) { if (ModAPI.is_1_12) {
classId = classId.replace(".eaglercraft.v1_8", ".eaglercraft"); //why peyton why must you do this. you couldve changed it to v1_12 too, that would've worked classId = classId.replace(".eaglercraft.v1_8", ".eaglercraft"); //why peyton why must you do this. you couldve changed it to v1_12 too, that would've worked
classId = classId.replace(".entity.RenderItem", ".RenderItem");
} }
var name = ""; var name = "";
var classStuff = classId.split("."); var classStuff = classId.split(".");