Skip to content

Commit

Permalink
fixed gamma float value
Browse files Browse the repository at this point in the history
They use .floatValue() afterward on the return value, so we need to return a value which is not bigger than Float.MAX_VALUE
  • Loading branch information
1zun4 committed Mar 21, 2023
1 parent 9cb1f28 commit 99dadc7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ private Object injectXRayFullBright(SimpleOption option) {
return option.getValue();
}

return Double.MAX_VALUE;
// They use .floatValue() afterward on the return value, so we need to return a value which is not bigger than Float.MAX_VALUE
return (double) Float.MAX_VALUE;
}
}

0 comments on commit 99dadc7

Please sign in to comment.