diff --git a/common/src/main/java/com/hammy275/immersivemc/client/subscribe/ClientLogicSubscriber.java b/common/src/main/java/com/hammy275/immersivemc/client/subscribe/ClientLogicSubscriber.java index 58add010..3695e536 100644 --- a/common/src/main/java/com/hammy275/immersivemc/client/subscribe/ClientLogicSubscriber.java +++ b/common/src/main/java/com/hammy275/immersivemc/client/subscribe/ClientLogicSubscriber.java @@ -177,6 +177,10 @@ public static void onDisconnect(Player player) { } protected static void tickInfos(AbstractImmersive singleton, Player player) { + // Don't tick if VR only and not in VR + if (singleton.isVROnly() && !VRPluginVerify.clientInVR()) { + return; + } singleton.globalTick(); if (singleton.getTrackedObjects().size() == 0) { singleton.noInfosTick(); // Run onNoInfos() function if we don't have any infos right now diff --git a/common/src/main/java/com/hammy275/immersivemc/client/subscribe/ClientRenderSubscriber.java b/common/src/main/java/com/hammy275/immersivemc/client/subscribe/ClientRenderSubscriber.java index d3480cf3..e4d5adaf 100644 --- a/common/src/main/java/com/hammy275/immersivemc/client/subscribe/ClientRenderSubscriber.java +++ b/common/src/main/java/com/hammy275/immersivemc/client/subscribe/ClientRenderSubscriber.java @@ -42,6 +42,9 @@ public static void onWorldRender(PoseStack stack) { protected static void renderInfos(AbstractImmersive singleton, PoseStack stack) { try { + if (singleton.isVROnly() && !VRPluginVerify.clientInVR()) { + return; + } for (I info : singleton.getTrackedObjects()) { singleton.doRender(info, stack, VRPluginVerify.clientInVR()); }