From 92ccade9febcd75345bceee101bd92f436a59585 Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Tue, 6 May 2025 17:35:06 +0800 Subject: [PATCH] add note about ModAPI.enchantments --- core/postinit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/postinit.js b/core/postinit.js index 3dfad8d..04a9ddc 100644 --- a/core/postinit.js +++ b/core/postinit.js @@ -1094,7 +1094,7 @@ const modapi_postinit = "(" + (() => { ModAPI.items = new Proxy(ModAPI.hooks._classMap[ModAPI.util.getCompiledName("net.minecraft.init.Items")].staticVariables, StaticProps_ProxyConf); ModAPI.blocks = new Proxy(ModAPI.hooks._classMap[ModAPI.util.getCompiledName("net.minecraft.init.Blocks")].staticVariables, StaticProps_ProxyConf); ModAPI.materials = new Proxy(ModAPI.hooks._classMap[ModAPI.util.getCompiledName("net.minecraft.block.material.Material")].staticVariables, StaticProps_ProxyConf); - ModAPI.enchantments = new Proxy(ModAPI.hooks._classMap[ModAPI.util.getCompiledName("net.minecraft.enchantment.Enchantment")].staticVariables, StaticProps_ProxyConf); + ModAPI.enchantments = new Proxy(ModAPI.hooks._classMap[ModAPI.util.getCompiledName("net.minecraft.enchantment.Enchantment")].staticVariables, StaticProps_ProxyConf); //bugged on 1.12 due to more client optimisations. might need to change the optimisation intensity } ModAPI.events.newEvent("bootstrap", "server");