Skip to content
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

1.21.3 + Neoforge #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

MrJeremyFisher
Copy link
Contributor

Plus a few other things

@@ -119,7 +118,7 @@ private static void renderSnitch(Snitch snitch) {
// inflate/deflate so the box face isn't obscured by adjacent blocks
final boolean playerInRange = range.contains(mc.player.position());
AABB rangeBox = playerInRange ? range.inflate(-.01) : range.inflate(.01);
AABB outlineBox = playerInRange ? range.inflate(-.05) : range.inflate(.05);
AABB outlineBox = playerInRange ? range.inflate(-.01) : range.inflate(.01);
Copy link
Owner

Choose a reason for hiding this comment

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

does this not result in z fighting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It didn't for me. It isn't really necessary though, it just always bothered me to have the box that much smaller than the lines.

import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(LevelRenderer.class)
public abstract class LevelRenderMixin { // REMINDER: Forge sucks
Copy link
Owner

Choose a reason for hiding this comment

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

would it make sense to use this mixin with all mod loaders? to reduce disparities which may lead to different behavior on different loaders

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could but the mixin is currently just replicating the behaviour provided by the other loaders because Forge removed the event without a replacement.

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