Skip to content

Commit

Permalink
improve creativetab
Browse files Browse the repository at this point in the history
  • Loading branch information
MarbleGateKeeper committed Mar 28, 2024
1 parent 6ee1bd7 commit c23f2bd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void accept(CreativeModeTab.ItemDisplayParameters itemDisplayParameters,
List<Item> items = new LinkedList();
items.addAll(this.collectItems());
items.addAll(this.collectBlocks());
outputAll(output, items);
filterAndOutput(output, items);
}

private List<Item> collectBlocks() {
Expand Down Expand Up @@ -87,10 +87,13 @@ private List<Item> collectItems() {
return items;
}

private static void outputAll(CreativeModeTab.Output output, List<Item> items) {
private static void filterAndOutput(CreativeModeTab.Output output, List<Item> items) {
Iterator var4 = items.iterator();
while(var4.hasNext()) {
Item item = (Item)var4.next();
if(item.toString().contains("incomplete")) continue;
if(item.toString().equals("create:blaze_burner")) continue;
if(item.toString().equals("create_central_kitchen:create_tab_icon")) continue;
output.accept(item);
}

Expand Down

0 comments on commit c23f2bd

Please sign in to comment.