Skip to content

Conversation

@lowercasebtw
Copy link

Added 1.12, and 1.21.5 support with some code refactoring/cleanup

if (hitboxInfo.showMode != 2) enabled = true
hitboxesEnabled = enabled

// TODO: FIX
Copy link
Member

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

Copy link
Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix this

Copy link
Member

@Wyvest Wyvest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some more comments


HitboxRendererKt.renderHitbox(
stack,
new HitboxState(
Copy link
Member

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

@lowercasebtw
Copy link
Author

fixed the stuff

Copy link
Member

@Wyvest Wyvest left a 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
Copy link
Member

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();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overwrite

@Wyvest Wyvest merged commit b8485a0 into Polyfrost:twoconfig Sep 28, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants