diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c3a66f3..9d7cadf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,12 +26,6 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: check for errors - if: ${{ runner.os == 'Linux' && matrix.java == '17' }} - uses: github/super-linter@v3.17.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - VALIDATE_ALL_CODEBASE: false - name: validate gradle wrapper uses: gradle/wrapper-validation-action@v1 - name: setup jdk ${{ matrix.java }} @@ -49,3 +43,9 @@ jobs: with: name: Artifacts path: build/libs/ + - name: check for errors + if: ${{ runner.os == 'Linux' && matrix.java == '17' }} + uses: github/super-linter@v3.17.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_ALL_CODEBASE: false diff --git a/src/main/java/de/einholz/ehdynview/mixins/GameOptionsM.java b/src/main/java/de/einholz/ehdynview/mixins/GameOptionsM.java index 42b53f0..84881ac 100644 --- a/src/main/java/de/einholz/ehdynview/mixins/GameOptionsM.java +++ b/src/main/java/de/einholz/ehdynview/mixins/GameOptionsM.java @@ -24,7 +24,7 @@ private void getViewDistanceM(final CallbackInfoReturnable int fps = AvgFps.getFps(); if (fps < 1) ret.setValue(2); else if (fps < fpsMin) ret.setValue(Math.max(2, ret.getValue() - 1)); - else if (fps > fpsMax) ret.setValue(ret.getValue() + 1); + else if (fps > fpsMax) ret.setValue(Math.min(32, ret.getValue() + 1)); if (initView == ret.getValue()) cir.setReturnValue(cir.getReturnValue()); AvgFps.delay(); System.out.println(ret.getValue() + " Chunks at " + fps + " FPS");