mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix matrix stack translations for RenderHighlightEvent (#10050)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user