9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-26 10:29:20 +00:00

修复物品单独设置类别重载后不清空

This commit is contained in:
XiaoMoMi
2025-06-27 17:01:06 +08:00
parent c298987add
commit fdd1b88e0b
2 changed files with 1 additions and 1 deletions

View File

@@ -17,7 +17,6 @@ import java.util.Map;
public class BlockBehaviors {
public static final Key EMPTY = Key.from("craftengine:empty");
public static final Key UNSAFE_COMBINED = Key.from("craftengine:unsafe_combined");
public static void register(Key key, BlockBehaviorFactory factory) {
Holder.Reference<BlockBehaviorFactory> holder = ((WritableRegistry<BlockBehaviorFactory>) BuiltInRegistries.BLOCK_BEHAVIOR_FACTORY)

View File

@@ -52,6 +52,7 @@ public class ItemBrowserManagerImpl implements ItemBrowserManager {
public void unload() {
this.byId.clear();
this.categoryOnMainPage.clear();
this.externalMembers.clear();
}
@Override