Skip to content

Commit 619c2e0

Browse files
committed
Make the calculation system backwards compatible
1 parent 797ae08 commit 619c2e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/me/wyzebb/playerviewdistancecontroller/data/VdCalculator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static void calcVdSet(Player player, boolean luckPermsEvent) {
4545
finalChunks = Math.min(amount, luckpermsDistance);
4646
}
4747

48-
if (amountOthers != 0) {
48+
if (amountOthers != 0 && amountOthers != -1) {
4949
finalChunks = ClampAmountUtility.clampChunkValue(amountOthers);
5050
}
5151

0 commit comments

Comments
 (0)