-
Notifications
You must be signed in to change notification settings - Fork 49
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
Sheeted Frame Revamp/ Improvements #306
base: main
Are you sure you want to change the base?
Conversation
…pect from frame blocks. Does not force frame boxes to treat sheeted frames as if they were equivalent to frame boxes themselves, but sheeted frames will treat frame boxes specially.
I'm always wondering why Sheeted Frame box isn't extending MaterialBlock |
I don't really think the function of framing a pipe/cabe deserves such amount of mixins |
The reasons for not using MaterialBlock is both because these were created before that and because MaterialBlock is very much focused on material variant properties only. I would likely need to do a non-negligible amount of work to force MaterialBlock to function as sheeted frames do, which doesn't resolve the issue of requiring mixins. The mixins used were only those strictly necessary for the desired functionality, from my understanding/ A pr to ceu is beyond the scope of what I am willing to do at the moment for a number of reasons. For one, I would need to formalize all previous work, which would likely be significantly more work on its own. Additionally, I suspect such a pr to be rejected due to work being done on pipes, as you said. If I were to be permitted to include my changes alongside the pipenet rework, generalizing the implementation sufficiently would be a significant amount of work on its own, which puts the completability/ expected date for this feature up in the air, not including the potential time for the pipenet rework itself to be completed. |
@@ -16,7 +16,7 @@ | |||
import org.spongepowered.asm.mixin.injection.Inject; | |||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | |||
|
|||
@Mixin(value = FacadeItemBlock.class) | |||
@Mixin(value = FacadeItemBlock.class, remap = false) |
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 is not how it works, adding remap = false will stop this mixin from working in obf environment
this is fixed alr in #303
{ | ||
"package": "supersymmetry.mixins", | ||
"refmap": "mixins.susy.refmap.json", | ||
"target": "@env(DEFAULT)", |
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.
should remove this file, it's auto generated but we aren't using it
@@ -0,0 +1,6 @@ | |||
package supersymmetry.api.blocks; |
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.
better replace this with an accessor and a invoker ig
apart from these, declared features seem to work fine for me |
Honestly, I feel like this PR is just too likely to break things, given how invasive these mixins seem to be in the code. I would really rather prefer this to be either done after the pipe rework or done with way less mixins. |
Revamp Sheeted Frames to have all the same functionality you would expect from frame blocks. Does not force frame boxes to treat sheeted frames as if they were equivalent to frame boxes themselves, but sheeted frames will treat frame boxes specially.