diff --git a/Common/src/main/java/com/example/examplemod/CommonClass.java b/Common/src/main/java/com/example/examplemod/CommonClass.java index 7d74614..dd2d653 100644 --- a/Common/src/main/java/com/example/examplemod/CommonClass.java +++ b/Common/src/main/java/com/example/examplemod/CommonClass.java @@ -3,7 +3,6 @@ package com.example.examplemod; import com.example.examplemod.platform.Services; import net.minecraft.core.Registry; import net.minecraft.network.chat.Component; -import net.minecraft.network.chat.TextComponent; import net.minecraft.world.food.FoodProperties; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; @@ -33,8 +32,8 @@ public class CommonClass { if (food != null) { - tooltip.add(new TextComponent("Nutrition: " + food.getNutrition())); - tooltip.add(new TextComponent("Saturation: " + food.getSaturationModifier())); + tooltip.add(Component.literal("Nutrition: " + food.getNutrition())); + tooltip.add(Component.literal("Saturation: " + food.getSaturationModifier())); } } } diff --git a/Fabric/src/main/resources/fabric.mod.json b/Fabric/src/main/resources/fabric.mod.json index b56f6c9..4cbbe42 100644 --- a/Fabric/src/main/resources/fabric.mod.json +++ b/Fabric/src/main/resources/fabric.mod.json @@ -27,9 +27,9 @@ ], "depends": { - "fabricloader": ">=0.13", + "fabricloader": ">=0.14", "fabric": "*", - "minecraft": "1.18.x", + "minecraft": "1.19.x", "java": ">=17" }, "suggests": { diff --git a/Forge/src/main/resources/META-INF/mods.toml b/Forge/src/main/resources/META-INF/mods.toml index d14022d..2c9439c 100644 --- a/Forge/src/main/resources/META-INF/mods.toml +++ b/Forge/src/main/resources/META-INF/mods.toml @@ -6,7 +6,7 @@ # The name of the mod loader type to load - for regular FML @Mod mods it should be javafml modLoader="javafml" #mandatory # A version range to match for said mod loader - for regular FML @Mod it will be the forge version -loaderVersion="[40,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions. +loaderVersion="[41,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions. # The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties. # Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here. license="All rights reserved" @@ -47,7 +47,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis lacinia magn # Does this dependency have to exist - if not, ordering below must be specified mandatory=true #mandatory # The version range of the dependency - versionRange="[38,)" #mandatory + versionRange="[41,)" #mandatory # An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory ordering="NONE" # Side this dependency is applied on - BOTH, CLIENT or SERVER @@ -57,6 +57,6 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis lacinia magn modId="minecraft" mandatory=true # This version range declares a minimum of the current minecraft version up to but not including the next major version - versionRange="[1.18,1.19)" + versionRange="[1.19,1.20)" ordering="NONE" side="BOTH" diff --git a/gradle.properties b/gradle.properties index b4e43c2..aca267c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,18 +3,18 @@ version=1.0.0 group=com.example.examplemod # Common -minecraft_version=1.18.2 +minecraft_version=1.19 common_runs_enabled=false common_client_run_name=Common Client common_server_run_name=Common Server # Forge -forge_version=40.0.54 +forge_version=41.0.1 //forge_ats_enabled=true # Fabric -fabric_version=0.51.0+1.18.2 -fabric_loader_version=0.13.3 +fabric_version=0.55.2+1.19 +fabric_loader_version=0.14.6 # Mod options mod_name=MultiLoader