Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/Multiloader-1.21.3' into…
Browse files Browse the repository at this point in the history
… Multiloader-1.21
  • Loading branch information
fayer3 committed Jan 13, 2025
2 parents afac174 + 79e5f86 commit 707113f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public abstract class GameRendererVRMixin
private Matrix4f vivecraft$customProjectionMatrix(
Matrix4f instance, float fovy, float aspect, float zNear, float zFar, Operation<Matrix4f> original)
{
if (VRState.VR_RUNNING) {
if (!RenderPassType.isVanilla()) {
zNear = vivecraft$MIN_CLIP_DISTANCE;
if (MethodHolder.isInMenuRoom()) {
// use 16 Chunks as minimum, to have no issues with clipping in the menuworld
Expand Down Expand Up @@ -281,7 +281,7 @@ public abstract class GameRendererVRMixin
GameRenderer instance, DeltaTracker deltaTracker, Operation<Void> original)
{
original.call(instance, deltaTracker);
if (VRState.VR_RUNNING && vivecraft$DATA_HOLDER.currentPass != RenderPass.THIRD &&
if (!RenderPassType.isVanilla() && vivecraft$DATA_HOLDER.currentPass != RenderPass.THIRD &&
vivecraft$DATA_HOLDER.currentPass != RenderPass.CAMERA)
{
VREffectsHelper.renderFaceOverlay(deltaTracker.getGameTimeDeltaPartialTick(false));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"traben.entity_model_features.models.EMFModelPartWithState"
}, remap = false)
public class EMFModelPartWithStateVRMixin {
@WrapWithCondition(method = {"render", "method_22699", "m_104301_"}, at = @At(value = "INVOKE", target = "Ljava/lang/Runnable;run()V"))
@WrapWithCondition(method = {"render", "method_22699", "m_104306_"}, at = @At(value = "INVOKE", target = "Ljava/lang/Runnable;run()V"))
private boolean vivecraft$noRenderEventForFirstPerson(Runnable instance) {
return !VRState.VR_RUNNING || !ClientDataHolderVR.IS_FP_HAND;
}

@WrapWithCondition(method = {"render", "method_22699", "m_104301_"}, at = @At(value = "INVOKE", target = "Ltraben/entity_model_features/models/parts/EMFModelPart$Animator;run()V"))
@WrapWithCondition(method = {"render", "method_22699", "m_104306_"}, at = @At(value = "INVOKE", target = "Ltraben/entity_model_features/models/parts/EMFModelPart$Animator;run()V"))
private boolean vivecraft$noAnimationForFirstPerson(EMFModelPart.Animator original) {
return !VRState.VR_RUNNING || !ClientDataHolderVR.IS_FP_HAND;
}
Expand Down

0 comments on commit 707113f

Please sign in to comment.