Bassebombecraft

Bassebombecraft

18.5k Downloads

1.14.3 mod initialization fails with error: ResourceLocationException: Non [a-z0-9/._-] character in path of location: bassebombecraft:TeleportBook

Closed this issue ยท 2 comments

commented

Stacktrace:

Caused by: net.minecraft.util.ResourceLocationException: Non [a-z0-9/._-] character in path of location: bassebombecraft:TeleportBook
	at net.minecraft.util.ResourceLocation.<init>(ResourceLocation.java:30) ~[forge-1.14.3-27.0.50_mapped_snapshot_20190621-1.14.2-recomp.jar:?]
	at net.minecraft.util.ResourceLocation.<init>(ResourceLocation.java:39) ~[forge-1.14.3-27.0.50_mapped_snapshot_20190621-1.14.2-recomp.jar:?]
	at net.minecraftforge.registries.GameData.checkPrefix(GameData.java:956) ~[forge-1.14.3-27.0.50_mapped_snapshot_20190621-1.14.2-recomp.jar:?]
	at net.minecraftforge.registries.ForgeRegistryEntry.setRegistryName(ForgeRegistryEntry.java:45) ~[forge-1.14.3-27.0.50_mapped_snapshot_20190621-1.14.2-recomp.jar:?]
	at bassebombecraft.item.ItemUtils.doCommonItemInitialization(ItemUtils.java:20) ~[main/:?]
	at bassebombecraft.item.book.GenericRightClickedBook.<init>(GenericRightClickedBook.java:64) ~[main/:?]
	at bassebombecraft.item.book.TeleportBook.<init>(TeleportBook.java:16) ~[main/:?]
	at bassebombecraft.event.item.ItemRegistryEventHandler.<clinit>(ItemRegistryEventHandler.java:106) ~[main/:?]
	at java.lang.Class.forName0(Native Method) ~[?:1.8.0_211]
	at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_211]
	at net.minecraftforge.fml.AutomaticEventSubscriber.lambda$inject$3(AutomaticEventSubscriber.java:70) ~[forge-1.14.3-27.0.50_mapped_snapshot_20190621-1.14.2-recomp.jar:?]
	at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_211]
	at net.minecraftforge.fml.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:57) ~[forge-1.14.3-27.0.50_mapped_snapshot_20190621-1.14.2-recomp.jar:?]
	at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:140) ~[forge-1.14.3-27.0.50_mapped_snapshot_20190621-1.14.2-recomp.jar:27.0]

commented

Solution: Item is registered in the item registry using the lower case class name.
Previously the class name was stored using camel case.

commented

Closed with commit 5f7f122.