diff --git a/gradle.properties b/gradle.properties index 40665b3..6cea9ee 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,20 +7,20 @@ org.gradle.configuration-cache=true #read more on this at https://github.com/neoforged/ModDevGradle?tab=readme-ov-file#better-minecraft-parameter-names--javadoc-parchment # you can also find the latest versions at: https://parchmentmc.org/docs/getting-started -parchment_minecraft_version=1.21 -parchment_mappings_version=2024.07.28 +parchment_minecraft_version=1.21.1 +parchment_mappings_version=2024.11.13 # Environment Properties # You can find the latest versions here: https://projects.neoforged.net/neoforged/neoforge # The Minecraft version must agree with the Neo version to get a valid artifact -minecraft_version=1.21.1 +minecraft_version=1.21.3 # The Minecraft version range can use any release version of Minecraft as bounds. # Snapshots, pre-releases, and release candidates are not guaranteed to sort properly # as they do not follow standard versioning conventions. -minecraft_version_range=[1.21.1, 1.22) +minecraft_version_range=[1.21.3, 1.22) # The Neo version must agree with the Minecraft version to get a valid artifact -neo_version=21.1.72 +neo_version=21.3.31-beta # The Neo version range can use any version of Neo as bounds -neo_version_range=[21.1.0,) +neo_version_range=[21.3.0-beta,) # The loader version range can only use the major version of FML as bounds loader_version_range=[4,) diff --git a/src/main/java/com/example/examplemod/Config.java b/src/main/java/com/example/examplemod/Config.java index d70d1eb..74ae82a 100644 --- a/src/main/java/com/example/examplemod/Config.java +++ b/src/main/java/com/example/examplemod/Config.java @@ -57,7 +57,7 @@ static void onLoad(final ModConfigEvent event) // convert the list of strings into a set of items items = ITEM_STRINGS.get().stream() - .map(itemName -> BuiltInRegistries.ITEM.get(ResourceLocation.parse(itemName))) + .map(itemName -> BuiltInRegistries.ITEM.getValue(ResourceLocation.parse(itemName))) .collect(Collectors.toSet()); } }