From b2d8bb373c766b06ca6b53503304313ab0a61c6c Mon Sep 17 00:00:00 2001 From: MarbleGate Date: Wed, 3 Apr 2024 14:33:28 +0800 Subject: [PATCH] update dragonlib & small fix on creative tab --- gradle.properties | 2 +- .../entry/creativetab/CckCreativeModeTab.java | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 518c6f1..23d5e39 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,7 +18,7 @@ parchment_version = 2023.07.23 # embedded dependency versions mixin_extras_version = 0.2.0 -create_dragon_lib_version = 1.4.2 +create_dragon_lib_version = 1.4.3 create_dragon_lib_version_range = [1.4.1, 1.5.0) # mandatory dependency versions diff --git a/src/main/java/plus/dragons/createcentralkitchen/entry/creativetab/CckCreativeModeTab.java b/src/main/java/plus/dragons/createcentralkitchen/entry/creativetab/CckCreativeModeTab.java index 67eb886..6b57db3 100644 --- a/src/main/java/plus/dragons/createcentralkitchen/entry/creativetab/CckCreativeModeTab.java +++ b/src/main/java/plus/dragons/createcentralkitchen/entry/creativetab/CckCreativeModeTab.java @@ -85,7 +85,7 @@ private List collectItems() { while(var3.hasNext()) { RegistryEntry entry = (RegistryEntry)var3.next(); Item item = entry.get(); - if (!(item instanceof BlockItem)) { + if (!(item instanceof BlockItem) && !(item instanceof BucketItem)) { items.add(item); } } @@ -100,7 +100,7 @@ private List collectFluid() { while(var3.hasNext()) { RegistryEntry entry = (RegistryEntry)var3.next(); ForgeFlowingFluid fluid = entry.get(); - if (fluid.getBucket()!=Items.AIR) { + if (fluid.getBucket()!=Items.AIR && !items.contains(fluid.getBucket())) { items.add(fluid.getBucket()); } } @@ -116,7 +116,6 @@ private static void filterAndOutput(CreativeModeTab.Output output, List it if(item.toString().contains("guide")) continue; if(item.toString().contains("blaze_burner")) continue; if(item.toString().contains("creative_tab_icon")) continue; - if(item.toString().contains("pumpkin_pie")) continue; output.accept(item); } if (Mods.isLoaded(Mods.FD))