i get this error, what do i do
Caused by: java.lang.ClassCastException: class net.minecraftforge.registries.RegistryObject cannot be cast to class net.JustEmSee_Burd.the_majestic.spell.Spell (net.minecraftforge.registries.RegistryObject is in module [email protected] of loader 'TRANSFORMER' @9aa2002; net.JustEmSee_Burd.the_majestic.spell.Spell is in module [email protected] of loader 'TRANSFORMER' @9aa2002)
I am making a mod where I need to look in e certain radius around the player if there is a item with a specific itemtag in an inventory of a block (chest, furnace, ect).