Skip to content

ASMAPI.getSystemPropertyFlag using wrong Boolean conversion #31

@jediminer543

Description

@jediminer543

As of writing; the ability for coremods to access properties is broken due to the method of boolean conversion.

It currently uses Boolean.getBoolean which reads the given string as a property name and the looks at what the value of that property is. To make a flag "flag" be true pass `-Dcoremod.flag=true -Dtrue=true'

Responsible line:

return Boolean.getBoolean(System.getProperty("coremod."+propertyName, "TRUE"));

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