Skip to content

Commit

Permalink
Merge pull request #16 from eaglerforge/main
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
ZXMushroom63 authored Sep 26, 2024
2 parents 216309e + 69a1829 commit 8237541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postinit.js
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ globalThis.modapi_postinit = "(" + (() => {
return x;
}

const originalBootstrap = ModAPI.hooks.staticMethods[ModAPI.util.getMethodFromPackage("net.minecraft.init.Bootstrap", "register")];
const originalBootstrap = ModAPI.hooks.methods[ModAPI.util.getMethodFromPackage("net.minecraft.init.Bootstrap", "register")];
ModAPI.hooks.methods[ModAPI.util.getMethodFromPackage("net.minecraft.init.Bootstrap", "register")] = function (...args) {
var x = originalBootstrap.apply(this, args);
ModAPI.items = new Proxy(ModAPI.hooks._classMap[ModAPI.util.getCompiledName("net.minecraft.init.Items")].staticVariables, StaticProps_ProxyConf);
Expand Down

0 comments on commit 8237541

Please sign in to comment.