From 870cd4d1c31be16ae1d977055b6574bb82130964 Mon Sep 17 00:00:00 2001 From: fretuks Date: Wed, 21 Jan 2026 09:08:50 +0100 Subject: [PATCH] Add small improvements --- gradle.properties | 2 +- src/main/java/net/fretux/ascend/event/PlayerEvents.java | 2 +- src/main/java/net/fretux/ascend/network/PacketHandler.java | 2 +- .../java/net/fretux/ascend/worldgen/ModWorldGenProvider.java | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index bdd3b57..b6fdf59 100644 --- a/gradle.properties +++ b/gradle.properties @@ -53,7 +53,7 @@ mod_name=Ascend: SbA # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=All Rights Reserved # The mod version. See https://semver.org/ -mod_version=2.2.0 +mod_version=2.2.1 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/net/fretux/ascend/event/PlayerEvents.java b/src/main/java/net/fretux/ascend/event/PlayerEvents.java index c851e33..a38c063 100644 --- a/src/main/java/net/fretux/ascend/event/PlayerEvents.java +++ b/src/main/java/net/fretux/ascend/event/PlayerEvents.java @@ -15,7 +15,7 @@ import net.minecraftforge.fml.common.Mod; public class PlayerEvents { private static final ResourceLocation PLAYER_STATS_ID = - new ResourceLocation(AscendMod.MODID, "player_stats"); + ResourceLocation.fromNamespaceAndPath(AscendMod.MODID, "player_stats"); @SubscribeEvent public static void onAttachCapabilities(AttachCapabilitiesEvent event) { diff --git a/src/main/java/net/fretux/ascend/network/PacketHandler.java b/src/main/java/net/fretux/ascend/network/PacketHandler.java index e906196..02a5824 100644 --- a/src/main/java/net/fretux/ascend/network/PacketHandler.java +++ b/src/main/java/net/fretux/ascend/network/PacketHandler.java @@ -15,7 +15,7 @@ public class PacketHandler { public static void register() { INSTANCE = NetworkRegistry.newSimpleChannel( - new ResourceLocation(AscendMod.MODID, "main"), + ResourceLocation.fromNamespaceAndPath(AscendMod.MODID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals diff --git a/src/main/java/net/fretux/ascend/worldgen/ModWorldGenProvider.java b/src/main/java/net/fretux/ascend/worldgen/ModWorldGenProvider.java index d44e901..a75a9f6 100644 --- a/src/main/java/net/fretux/ascend/worldgen/ModWorldGenProvider.java +++ b/src/main/java/net/fretux/ascend/worldgen/ModWorldGenProvider.java @@ -31,11 +31,11 @@ public class ModWorldGenProvider extends DatapackBuiltinEntriesProvider { public static final ResourceKey SHRINE = ResourceKey.create(Registries.STRUCTURE, - new ResourceLocation(AscendMod.MODID, "shrine_of_remembrance")); + ResourceLocation.fromNamespaceAndPath(AscendMod.MODID, "shrine_of_remembrance")); public static final ResourceKey SHRINE_SET = ResourceKey.create(Registries.STRUCTURE_SET, - new ResourceLocation(AscendMod.MODID, "shrine_set")); + ResourceLocation.fromNamespaceAndPath(AscendMod.MODID, "shrine_set")); public ModWorldGenProvider(PackOutput output, CompletableFuture registries) { super(output, registries, new RegistrySetBuilder()