From 59a2e8f08d046c360c108796447ade970a0334df Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Sun, 1 Dec 2024 15:59:59 +0800 Subject: [PATCH] fix stupid bug --- postinit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postinit.js b/postinit.js index 16eada7..7aa6cac 100644 --- a/postinit.js +++ b/postinit.js @@ -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() + ")();";