From 52eb1240d718f258ca70e2a9a85ec439d4ea8293 Mon Sep 17 00:00:00 2001 From: fayer3 Date: Thu, 2 Nov 2023 23:16:52 +0100 Subject: [PATCH] Revert "only prepare menuworld, if it's actually loaded" This reverts commit 56a09c3d51fd961ec2e9dcf6373f76bf30a3e522. Revert "make menuworlds only load in the main menu, to prevent being kicked from servers, when enabling VR while ingame" This reverts commit 0a5c470fefbd6016d9d581cd9a9edd1086bf3449. --- .../org/vivecraft/client_vr/menuworlds/MenuWorldRenderer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/src/main/java/org/vivecraft/client_vr/menuworlds/MenuWorldRenderer.java b/common/src/main/java/org/vivecraft/client_vr/menuworlds/MenuWorldRenderer.java index 49ac9d238..7e53be130 100644 --- a/common/src/main/java/org/vivecraft/client_vr/menuworlds/MenuWorldRenderer.java +++ b/common/src/main/java/org/vivecraft/client_vr/menuworlds/MenuWorldRenderer.java @@ -225,7 +225,7 @@ private void renderChunkLayer(RenderType layer, Matrix4f modelView, Matrix4f Pro } public void prepare() { - if (vertexBuffers == null && blockAccess != null && !ready && mc.level == null) { + if (vertexBuffers == null) { VRSettings.logger.info("MenuWorlds: Building geometry..."); boolean ao = mc.options.ambientOcclusion().get(); mc.options.ambientOcclusion().set(true); @@ -441,8 +441,6 @@ public void loadRenderers() { } public boolean isReady() { - // prepare menuworld, if that task wasn't started yet - prepare(); return ready; }