Skip to content

Commit

Permalink
Revert "only prepare menuworld, if it's actually loaded"
Browse files Browse the repository at this point in the history
This reverts commit 56a09c3.

Revert "make menuworlds only load in the main menu, to prevent being kicked from servers, when enabling VR while ingame"

This reverts commit 0a5c470.
  • Loading branch information
fayer3 committed Nov 2, 2023
1 parent 56a09c3 commit 52eb124
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -441,8 +441,6 @@ public void loadRenderers() {
}

public boolean isReady() {
// prepare menuworld, if that task wasn't started yet
prepare();
return ready;
}

Expand Down

0 comments on commit 52eb124

Please sign in to comment.