Fix EnergyContainerRecipe not returning correct RecipeSerializer

This commit is contained in:
DBotThePony 2022-09-11 22:13:25 +07:00
parent 3645f5cfd5
commit fe737e0703
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -39,6 +39,10 @@ class EnergyContainerRecipe(
return itemStack
}
override fun getSerializer(): RecipeSerializer<*> {
return Companion
}
companion object : RecipeSerializer<EnergyContainerRecipe> {
override fun fromJson(p_44103_: ResourceLocation, p_44104_: JsonObject): EnergyContainerRecipe {
return EnergyContainerRecipe(ShapedRecipe.Serializer.SHAPED_RECIPE.fromJson(p_44103_, p_44104_))