Skip to content

Commit

Permalink
更新MenuReg
Browse files Browse the repository at this point in the history
  • Loading branch information
MegumiKasuga committed Apr 10, 2024
1 parent 1c61ab4 commit e68a2b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public static void onClientSetup(FMLClientSetupEvent event) {
Start.printLogo(KasugaLib.MAIN_LOGGER);
for (SimpleRegistry registry : KasugaLib.STACKS.getRegistries().values()) {
registry.getCahcedMenus().forEach((a, b) -> b.hookMenuAndScreen());
registry.getCahcedMenus().clear();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ public void submit() {
FLUID.register(eventBus);
for(String key : CACHE_OF_BLOCK_ENTITIES.keySet()) {CACHE_OF_BLOCK_ENTITIES.get(key).submit(this);}
for(String key : CACHE_OF_MENUS.keySet()) {CACHE_OF_MENUS.get(key).submit(this);}
CACHE_OF_MENUS.clear();
BLOCK_ENTITIES.register(eventBus);
MENUS.register(eventBus);
ENTITIES.register(eventBus);
Expand Down

0 comments on commit e68a2b4

Please sign in to comment.