From a0bc23d7e925988f0fa567ad13918681f4246d8c Mon Sep 17 00:00:00 2001 From: gniftygnome Date: Sat, 8 Jun 2024 12:40:03 -0700 Subject: [PATCH] Update to 1.21-pre4 and FAPI 0.100. - Update to 1.21-pre4 --- .../traverse/data/TraverseBlockLootTableProvider.java | 5 +++++ gradle.properties | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/com/terraformersmc/traverse/data/TraverseBlockLootTableProvider.java b/common/src/main/java/com/terraformersmc/traverse/data/TraverseBlockLootTableProvider.java index eab3355..a14c2cf 100644 --- a/common/src/main/java/com/terraformersmc/traverse/data/TraverseBlockLootTableProvider.java +++ b/common/src/main/java/com/terraformersmc/traverse/data/TraverseBlockLootTableProvider.java @@ -3,6 +3,8 @@ import com.terraformersmc.traverse.block.TraverseBlocks; import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; import net.fabricmc.fabric.api.datagen.v1.provider.FabricBlockLootTableProvider; +import net.minecraft.enchantment.Enchantment; +import net.minecraft.registry.RegistryKeys; import net.minecraft.registry.RegistryWrapper; import java.util.concurrent.CompletableFuture; @@ -14,6 +16,9 @@ protected TraverseBlockLootTableProvider(FabricDataOutput output, CompletableFut @Override public void generate() { + //noinspection unused + RegistryWrapper.Impl enchantmentRegistry = this.registryLookup.getWrapperOrThrow(RegistryKeys.ENCHANTMENT); + // simple blocks addDrop(TraverseBlocks.BROWN_AUTUMNAL_SAPLING); addDrop(TraverseBlocks.FIR_BUTTON); diff --git a/gradle.properties b/gradle.properties index 7a00c2b..bca0b53 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,10 +4,10 @@ fabric.loom.multiProjectOptimisation=true maven_group=com.terraformersmc archive_name=traverse -minecraft_version=1.21-pre2 -yarn_mappings=1.21-pre2+build.2 +minecraft_version=1.21-pre4 +yarn_mappings=1.21-pre4+build.3 loader_version=0.15.11 -fabric_version=0.99.4+1.21 +fabric_version=0.100.0+1.21 terraform_biome_remapper_api_version=11.0.0-alpha.1 terraform_config_api_version=11.0.0-alpha.1 terraform_surfaces_api_version=11.0.0-alpha.1 @@ -38,7 +38,7 @@ curseforge_optional_dependencies= # Modrinth Metadata modrinth_slug=traverse modrinth_id=kXygSBVI -modrinth_game_versions=1.21-pre2 +modrinth_game_versions=1.21-pre4 modrinth_mod_loaders=fabric, quilt modrinth_required_dependencies=fabric-api #modrinth_embedded_dependencies=biolith