Ported remainder of main class.
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user