-
-
Notifications
You must be signed in to change notification settings - Fork 373
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 variable type reference being incorrect when same literals #5504
Conversation
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.
A useful fix.
src/main/java/org/skriptlang/skript/lang/converter/Converters.java
Outdated
Show resolved
Hide resolved
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.
Putting a little pause on this for now, testers have noticed that this is introducing a lot of unexpected type coercion that needs to be addressed.
bd134d0
to
3f08853
Compare
The type coercion that Kenzie mentioned earlier is still an issue:
|
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.
Conflicts need resolving
Closing for inactivity |
Description
Makes a fix for re-parsing variables that have the same literal name.
Example of this can be setting a variable to a snowball. Skript assumes it's an itemtype.
Now when using that variable in an entitydata expression, Skript attempts to convert but can't
as no converters exist for ItemType -> EntityData. That's where this fix steps in.
With the knowledge from my pull request at #5503 I knew exactly what Skript was doing and how to fix it.
I also cleaned up the EffShoot class to be up to date with standards while I was debugging.
Note that this pull request #5457 also helps this issue and solidifies that Skript will understand local variables
Target Minecraft Versions: any
Requirements: none
Related Issues: #3753, #5493 there are probably more, but nothing came up relating to index "variable"