Skip to content
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

Fix ExprRemainingAir Negative Value Handling #6947

Merged

Conversation

APickledWalrus
Copy link
Member

Description

This PR aims to fix ExprRemainingAir issues with negative value handling. It is possible for the API to return a negative value (from -1 to -19). This appears to be used for controlling when damage occurs. I have elected to interpret negative values as 0 seconds. Additionally, while it is possible to use any negative values, the behavior is a bit strange and unlikely to be useful. I have also removed the upper limit of 10000 seconds. I was unable to replicate any client or server issues from high values. It seems to count down when in water as expected.


Target Minecraft Versions: any
Requirements: none
Related Issues:

@APickledWalrus APickledWalrus added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.9 Targeting a 2.9.X version release labels Jul 31, 2024
@APickledWalrus APickledWalrus merged commit c53a57e into SkriptLang:dev/patch Aug 1, 2024
5 checks passed
@APickledWalrus APickledWalrus deleted the patch/remaining-air branch August 1, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.9 Targeting a 2.9.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants