-
Notifications
You must be signed in to change notification settings - Fork 2
Add 1.21.5 Support & Rework Code Structure #11
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
src/main/java/org/polyfrost/polyhitbox/mixin/MixinLineStateShard.java
Outdated
Show resolved
Hide resolved
| if (hitboxInfo.showMode != 2) enabled = true | ||
| hitboxesEnabled = enabled | ||
|
|
||
| // TODO: FIX |
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.
is this still a todo
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 because i dont know math
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.
Please fix this
Wyvest
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.
some more comments
src/main/java/org/polyfrost/polyhitbox/mixin/MixinLineStateShard.java
Outdated
Show resolved
Hide resolved
|
|
||
| HitboxRendererKt.renderHitbox( | ||
| stack, | ||
| new HitboxState( |
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.
cant we just pass all the variables here instead of creating a new HitboxState every time we want to render a hithbox
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
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.
Why?
src/main/java/org/polyfrost/polyhitbox/mixin/MixinRenderManager.java
Outdated
Show resolved
Hide resolved
|
fixed the stuff |
Wyvest
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.
Looks ok but does this do per-entity customization?
| if (hitboxInfo.showMode != 2) enabled = true | ||
| hitboxesEnabled = enabled | ||
|
|
||
| // TODO: FIX |
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.
Please fix this
| //#else | ||
| //$$ private void polyhitbox$customRendering(Entity entity, double offsetX, double offsetY, double offsetZ, float yaw, float tickDelta, CallbackInfo ci) { | ||
| //#endif | ||
| ci.cancel(); |
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.
Overwrite
Added 1.12, and 1.21.5 support with some code refactoring/cleanup