Skip to content

Conversation

@MrJeremyFisher
Copy link
Contributor

Plus a few other things

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.

@Gjum
Copy link
Owner

Gjum commented Mar 14, 2025

need to update .github/workflows/build.yml to upload the neoforge output

@Gjum Gjum merged commit 9cc89b2 into Gjum:master Mar 14, 2025
1 check passed
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