1

在结构更新(从 1.16 到 21w18a)之后,一些代码停止工作,即 RenderSystem.multMatrix(matrixStack.peek().getModel());
这个调用停止工作,因为函数不再存在。是否有任何替代此功能或将 matrixStack 转换为四元数的方法?

所有代码

public void renderFinders(MatrixStack matrixStack) {

        // RenderSystem.pushMatrix(); // 1.16
        matrixStack.push();

        RenderSystem.multMatrix(matrixStack.peek().getModel()); // 1.16 FIX IT

        GlStateManager._disableTexture();
        // GlStateManager.disableTexture(); // 1.16

        GlStateManager._disableDepthTest(); 
        // GlStateManager.disableDepthTest(); // 1.16

        DiamondGen.gen.simOreGen.render();

        // RenderSystem.popMatrix(); // 1.16
        matrixStack.pop();
    }
4

0 回答 0