Skip to content

Statistic bundle namespaces should be validated within the configuration #31

Description

@haykam821

A generic string codec is used in statistic bundle namespace configuration:

Codec.STRING.optionalFieldOf("statistics_bundle", LoopDeLoop.ID).forGetter(LoopDeLoopConfig::statisticsBundle),

However, this approach means that the game may fail at runtime. Instead, the codec added in NucleoidMC/plasmid#204 should be used to ensure that games with invalid statistic bundle namespaces fail to load.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions