Skip to content

Commit

Permalink
1.21: fix box render
Browse files Browse the repository at this point in the history
  • Loading branch information
inglettronald committed Jul 14, 2024
1 parent d5e2ba3 commit 2b821c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public int onCheckForRiding(int original) {
at = @At("HEAD"),
cancellable = true
)
public void changeItemDisplay (DrawContext context, CallbackInfo ci) {
public void changeItemDisplay(DrawContext context, CallbackInfo ci) {
if (DulkirConfig.ConfigVars.getConfigOptions().getHideHeldItemTooltip())
ci.cancel();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/dulkirfabric/Registrations.kt
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ object Registrations {
ModifyCommandEvent(command).also { it.post() }.command
}

WorldRenderEvents.END.register { context -> WorldRenderLastEvent(context).post() }
WorldRenderEvents.LAST.register { context -> WorldRenderLastEvent(context).post() }

ScreenEvents.BEFORE_INIT.register(
ScreenEvents.BeforeInit { client, screen, scaledWidth, scaledHeight ->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.dulkirfabric.util.render

import com.dulkirfabric.DulkirModFabric.mc
import com.mojang.blaze3d.systems.RenderSystem
import net.fabricmc.fabric.api.client.rendering.v1.WorldRenderContext
import net.minecraft.client.MinecraftClient
Expand All @@ -12,10 +13,8 @@ import net.minecraft.util.Formatting
import net.minecraft.util.math.Box
import net.minecraft.util.math.Vec3d
import org.joml.Vector3f
import org.lwjgl.opengl.GL11
import java.awt.Color
import kotlin.math.max
import kotlin.math.min
import kotlin.math.pow
import kotlin.math.sqrt

Expand Down

0 comments on commit 2b821c8

Please sign in to comment.