Skip to content

Commit

Permalink
fixing view distance being over 32
Browse files Browse the repository at this point in the history
- build workflow improvment
  • Loading branch information
1holz committed Jun 22, 2022
1 parent 7626ea9 commit 9fe1014
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 }}
Expand All @@ -49,3 +43,9 @@ jobs:
with:
name: Artifacts
path: build/libs/
- name: check for errors
if: ${{ runner.os == 'Linux' && matrix.java == '17' }}
uses: github/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private void getViewDistanceM(final CallbackInfoReturnable<SimpleOption<Integer>
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");
Expand Down

0 comments on commit 9fe1014

Please sign in to comment.