fix stupid bug

This commit is contained in:
ZXMushroom63 2024-12-01 15:59:59 +08:00
parent 2de2e06996
commit 59a2e8f08d

View File

@ -981,8 +981,8 @@ globalThis.modapi_postinit = "(" + (() => {
var values = [...ModAPI.reflect.getClassById("net.minecraft.item.Item").staticVariables.itemRegistry.$modapi_specmap.values()];
return qhash(item, values);
}
ModAPI.keygen.block = function () {
ModAPI.keygen.block = function (block) {
var values = [...ModAPI.reflect.getClassById("net.minecraft.block.Block").staticVariables.blockRegistry.$modapi_specmap.values()];
return qhash(item, values);
return qhash(block, values);
}
}).toString() + ")();";