Skip to content

Commit

Permalink
Validate configured statistic bundle namespaces
Browse files Browse the repository at this point in the history
Fixes #15
  • Loading branch information
haykam821 committed Jul 9, 2024
1 parent 99d8488 commit a39c8ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class WithersweeperConfig {
BoardConfig.CODEC.fieldOf("board").forGetter(WithersweeperConfig::getBoardConfig),
PlayerConfig.CODEC.fieldOf("players").forGetter(WithersweeperConfig::getPlayerConfig),
IntProvider.NON_NEGATIVE_CODEC.optionalFieldOf("ticks_until_close", ConstantIntProvider.create(SharedConstants.TICKS_PER_SECOND * 5)).forGetter(WithersweeperConfig::getTicksUntilClose),
Codec.STRING.optionalFieldOf("statistic_bundle_namespace").forGetter(WithersweeperConfig::getStatisticBundleNamespace),
GameStatisticBundle.NAMESPACE_CODEC.optionalFieldOf("statistic_bundle_namespace").forGetter(WithersweeperConfig::getStatisticBundleNamespace),
ItemStack.CODEC.optionalFieldOf("flag_stack", new ItemStack(Items.RED_BANNER)).forGetter(WithersweeperConfig::getFlagStack),
Codec.INT.optionalFieldOf("max_mistakes", 1).forGetter(WithersweeperConfig::getMaxMistakes)
).apply(instance, WithersweeperConfig::new);
Expand Down

0 comments on commit a39c8ff

Please sign in to comment.