-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Adding "indirectly redstone powered" condition #3297
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.
Just some comments!
src/main/java/ch/njol/skript/conditions/CondIsBlockRedstonePowered.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/conditions/CondIsBlockRedstonePowered.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/conditions/CondIsBlockRedstonePowered.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/conditions/CondIsBlockRedstonePowered.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Frank Kusmiruk <48283695+FranKusmiruk@users.noreply.github.com>
src/main/java/ch/njol/skript/conditions/CondIsBlockRedstonePowered.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.
Other than that, looks good to merge.
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.
code looks good - only question I have is: are we sure isBlockPowered returns false when isIndirectlyPowered is true? if it doesn't, directly shouldn't be part of the pattern
Thank you for your code comments. From what I have tested, I can confirm that |
is |
Oops, I didn't get it that way. So yes, |
If that's the case, then the |
Description
This Pull Request brings the addition of the "indirectly redstone powered" condition.
I directly added this to the existing condition. If you think it was a bad idea and that another condition should have been made, let me know!
Target Minecraft Versions: any
Requirements: none
Related Issues: #3294