-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: master
Are you sure you want to change the base?
Conversation
common/src/main/java/gjum/minecraft/civ/snitchmod/common/Renderer.java
Outdated
Show resolved
Hide resolved
@@ -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); |
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.
does this not result in z fighting?
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.
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.
forge/src/main/java/gjum/minecraft/civ/snitchmod/forge/mixins/LevelRenderMixin.java
Outdated
Show resolved
Hide resolved
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(LevelRenderer.class) | ||
public abstract class LevelRenderMixin { // REMINDER: Forge sucks |
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.
would it make sense to use this mixin with all mod loaders? to reduce disparities which may lead to different behavior on different loaders
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.
We could but the mixin is currently just replicating the behaviour provided by the other loaders because Forge removed the event without a replacement.
Plus a few other things