-
-
Notifications
You must be signed in to change notification settings - Fork 374
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 event-value time states #671 #3149
Conversation
Simple ingame test: Place ice and lava next to it. The test script posted should broadcast correctly when the ice melts in 30 seconds or so. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for this one!
All these syntax work again! I think there are some issues involving these Skript/src/main/java/ch/njol/skript/conditions/CondCompare.java Lines 74 to 90 in 8f1981d
|
Description
Fix time states #671
What this fix does is basically if the ExprEventValue setTime gets changed at some point. It will refresh it's getters which are done correctly now from my EventValue default expression pull 2cadc16
This is required because WrapperExpression's init method is called after the expression it's wrapping, which can't be changed unless the wrapper expression is a subtype of the expression it's wrapping, so this fix is suitable.
Related Issues
#671
This fixes time states only working with event-values, aka the main area of this usage, but
Expressions are suppose to check with their default expression and convert to get it's event-values getters. Example:
I've made this issue into a separate issue #3150