-
Notifications
You must be signed in to change notification settings - Fork 10
Copper specific interface #527
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
Conversation
OhmV-IR
left a comment
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.
needs fixes
| */ | ||
| fun changeWaxing(event: PlayerInteractEvent) | ||
|
|
||
| companion object : Listener { |
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.
this should go in BlockListener by convention
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.
No, we are already listening to that event in BlockListener and for now i want to keep the same priority
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.
Can you not have two function that listen to the same event in a listener? I thought you could but maybe I'm wrong
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.
Yes you can, but they need to be different priority or one won't be registered, or at least from what i remember
pylon-core/src/main/kotlin/io/github/pylonmc/pylon/core/block/base/PylonCopperBlock.kt
Outdated
Show resolved
Hide resolved
pylon-core/src/main/kotlin/io/github/pylonmc/pylon/core/block/base/PylonCopperBlock.kt
Show resolved
Hide resolved
| logEventHandleErr(event, e, pylonBlock) | ||
| } | ||
| } else { | ||
| event.isCancelled = true |
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.
!!!!! if we right click a block with an axe that is a copper variant and it's not a pylon block it will cancel the event? doesn't this just mean that all vanilla copper blocks will be unwaxable?
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.
not fixed
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.
it is man, how are you testing? did you update the branch?
Fixes #528