Skip to content

Improve ObjectProperty overriding behavior #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 24, 2025

Conversation

tal5
Copy link
Member

@tal5 tal5 commented Jul 30, 2025

Currently a couple of ObjectProperty methods re-implement the isDefaultValue logic, meaning overriding getPropertyValueNoDefault doesn't actually change them.
This makes these methods use getPropertyValueNoDefault, letting you override getPropertyValueNoDefault with custom checking logic.

Also removes the weird behavior where it would call getPropertyValue twice, not sure if there's any hidden reason for that I missed?

@mcmonkey4eva mcmonkey4eva merged commit af01b8c into DenizenScript:master Aug 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants