Fix matrix stack translations for RenderHighlightEvent (#10051)

This commit is contained in:
Martijn van den Brand authored and GitHub committed 2024-07-18 13:03:09 -07:00
1 parent c6f3726b6d
commit 845f315c47
2 files changed
+3 -5

No files matched your search

@@ -267,9 +267,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;