Ported remainder of main class.

This commit is contained in:
2026-01-09 00:08:13 +01:00
parent 681ebeeeb7
commit 9a0415effd

View File

@ -6,6 +6,7 @@ import net.minecraft.resources.ResourceLocation;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.ModContainer;
import net.neoforged.fml.ModList;
import net.neoforged.fml.common.Mod;
import net.neoforged.fml.loading.FMLEnvironment;
@ -27,7 +28,7 @@ public final class TotemOfReviving {
if (name.contains(":")) {
throw new IllegalArgumentException("Name contains namespace");
}
return new ResourceLocation(MOD_ID, name);
return ResourceLocation.fromNamespaceAndPath(MOD_ID, name);
}
public static String getVersion() {