-
Notifications
You must be signed in to change notification settings - Fork 9
Vaan/fix/copper blocks axes #458
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
Seggan
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.
IMO this should be a default behavior and then allow overriding per-block
LordIdra
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.
Agree with Seggan - maybe a PylonCopperWaxable or something, and then this logic can go in a listener
we already have a listener for that, why have 2 listener that do the same thing when it might create small problems, like which one gets called first, I agree on the idea of it being the default behaviour, but maybe we should just cancel the event as a default implementation of PylonInteractBlock |
Confused. Where's the current listener? |
meant to say that we can use the PylonInteractBlock handler listener and cancel the event by default |
|
Orrr.... we can ignore this and just let stuff be waxable by default |
This doesn't really feel intuitive to me tbh. If a pylon block is a hopper, I don't think that the default behaviour should be to cancel the interact event and force implementing blocks to then override and manually open the hopper interface. I would just suggest solving it by creating an interface |
Maybe not called PylonUnwaxable, as you can also remove rust if you wanted to and the interaction is the same, it seems useless to me having another event that does the exact same thing that interact does, and only creates confusion if both are implemented imo, one interface should interact with one event, it has always been like this, and I see no reason to change that now for this small edge case |
|
I don't see the issue? Why is having two interfaces for an event a problem? Surely this lets us control unwaxing much easier? In another world BlockUnwaxEvent could exist, the distinction between events is a little bit arbitrary here so I wouldn't just not do it because it requires two interfaces that listen to the same event |
It is a problem because
|
|
OK let's recap:
Does that make sense now? |
Fixes pylonmc/pylon-core#528