diff --git a/gradle.properties b/gradle.properties index b255f803..c989482e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings=1.21+build.1 loader_version=0.15.11 # Mod Properties -mod_version=0.1.1-beta +mod_version=0.1.2-beta maven_group=com.mmodding.extravaganza archives_base_name=extravaganza diff --git a/src/main/java/com/mmodding/extravaganza/init/ExtravaganzaBlocks.java b/src/main/java/com/mmodding/extravaganza/init/ExtravaganzaBlocks.java index f95cf430..022245a1 100644 --- a/src/main/java/com/mmodding/extravaganza/init/ExtravaganzaBlocks.java +++ b/src/main/java/com/mmodding/extravaganza/init/ExtravaganzaBlocks.java @@ -45,7 +45,7 @@ protected List getDroppedStacks(BlockState state, LootContextParamete public static final Block HEVEA_BRASILIENSIS_LEAVES = Blocks.createLeavesBlock(BlockSoundGroup.AZALEA_LEAVES); - public static final Block HEVEA_BRASILIENSIS_SAPLING = new SaplingBlock(new SaplingGenerator("hevea_brasiliensis", Optional.empty(), Optional.of(ExtravaganzaWorldGeneration.HEVEA_BRASILIENSIS), Optional.empty()), AbstractBlock.Settings.create().sounds(BlockSoundGroup.AZALEA_LEAVES)); + public static final Block HEVEA_BRASILIENSIS_SAPLING = new SaplingBlock(new SaplingGenerator("hevea_brasiliensis", Optional.empty(), Optional.of(ExtravaganzaWorldGeneration.HEVEA_BRASILIENSIS), Optional.empty()), AbstractBlock.Settings.create().ticksRandomly().breakInstantly().sounds(BlockSoundGroup.AZALEA_LEAVES)); public static final Block BALL_POOL_REGISTRATION_TABLE = new BallPoolRegistrationTableBlock(AbstractBlock.Settings.create().nonOpaque().strength(2.0f).sounds(BlockSoundGroup.WOOD)); public static final Block BALL_POOL_CONTENT = new BallPoolContentBlock(AbstractBlock.Settings.create().noCollision().sounds(BlockSoundGroup.SLIME)); diff --git a/src/main/java/com/mmodding/extravaganza/init/ExtravaganzaItems.java b/src/main/java/com/mmodding/extravaganza/init/ExtravaganzaItems.java index bc9ff704..fbc7b8a2 100644 --- a/src/main/java/com/mmodding/extravaganza/init/ExtravaganzaItems.java +++ b/src/main/java/com/mmodding/extravaganza/init/ExtravaganzaItems.java @@ -10,8 +10,6 @@ import net.minecraft.registry.Registry; import net.minecraft.text.Text; -import java.util.stream.Stream; - public class ExtravaganzaItems { public static final Item WRENCH_AGANZA = new WrenchAganzaItem(new Item.Settings().maxCount(1)); @@ -65,15 +63,13 @@ public static void register() { Registry.register(Registries.ITEM, Extravaganza.createId("bat"), ExtravaganzaItems.BAT); Registry.register(Registries.ITEM, Extravaganza.createId("merry_go_round"), ExtravaganzaItems.MERRY_GO_ROUND); - Stream stream = Extravaganza.extractFromRegistry(Registries.ITEM); - Registry.register( Registries.ITEM_GROUP, Extravaganza.createId("main"), FabricItemGroup.builder() .displayName(Text.translatable("itemGroup.extravaganza.main")) .icon(ExtravaganzaItems.WRENCH_AGANZA::getDefaultStack) - .entries((displayContext, entries) -> stream.forEach(entries::add)) + .entries((displayContext, entries) -> Extravaganza.extractFromRegistry(Registries.ITEM).forEach(entries::add)) .build() ); }