Properly fix CreativeTab item registering

This commit is contained in:
2023-03-19 15:54:49 +02:00
parent 33cae59b20
commit cf3a278a10
4 changed files with 10 additions and 13 deletions

View File

@@ -38,7 +38,7 @@ public class ForgeCommonEvents {
CreativeModeTab tab = event.getTab();
CreativeTabRegistry.getTabItems().stream()
.filter(p -> p.getLeft().get() == tab)
.filter(p -> p.getLeft().get() == tab && p.getRight() != null)
.forEach(itemPair -> event.accept(itemPair.getRight()));
}