Skip to content

The newly generated configuration file has the 'clamp-levels' option not set to true as expected by default. #1606

Description

@CatTeaA

Spark link

null

Expected behavior

The option 'clamp-levels' should be set to true by default.

Observed/Actual behavior

The configuration file option 'clamp-levels' defaults to false.

Steps/models to reproduce

Regenerate purpur.yml to observe 'clamp-levels'

Purpur version

(Purpur1.21.3#2333) and (Purpur1.21.1#2329)

Agreements

  • I am running the latest version of Purpur available from https://purpurmc.org/downloads.
  • I have searched for and ensured there isn't already an open issue regarding this.
  • I ticked all the boxes without actually reading them
  • My version of Minecraft is supported by Purpur.

Other

In the Discord discussion, someone pointed out a potential issue

+ org.purpurmc.purpur.PurpurConfig.clampEnchantLevels = purpurConfiguration.getBoolean("settings.enchantment.clamp-levels");

It defaults to false because getBoolean isn't given a default value there

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions