Fix matrix stack translations for RenderHighlightEvent (#10050)

This commit is contained in:
Martijn van den Brand authored and GitHub committed 2024-07-17 20:17:33 -07:00
1 parent d498ec4a45
commit 2844bead6e
2 files changed
+3 -5

No files matched your search

@@ -251,9 +251,7 @@ public class ForgeHooksClient {
return result != null ? result : layer.texture(inner);
}
public static boolean onDrawHighlight(LevelRenderer context, Camera camera, HitResult target, float partialTick, Matrix4f ctxPos, MultiBufferSource bufferSource) {
var poseStack = new PoseStack();
poseStack.mulPose(ctxPos);
public static boolean onDrawHighlight(LevelRenderer context, Camera camera, HitResult target, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource) {
switch (target.getType()) {
case BLOCK:
if (!(target instanceof BlockHitResult blockTarget)) return false;