Skip to content

Commit

Permalink
Explicit typing of numbers in shaders as some GL implementations are …
Browse files Browse the repository at this point in the history
…picky in regards to implicit casting #7756
  • Loading branch information
pupnewfster committed Jun 22, 2023
1 parent e03758f commit 46894eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
org.gradle.jvmargs=-Xmx2G

java_version=17
resource_pack_format=9
Expand All @@ -12,7 +12,7 @@ previous_minor_minecraft_version=1.19.1
mappings_version=2022.11.27-1.19.2
mappings_channel=parchment
loader_version_range=[43,)
forge_version=43.2.11
forge_version=43.2.14
mod_version=10.3.9
#This determines the minimum version of forge required to use Mekanism
# Only bump it whenever we need access to a feature in forge that is not available in earlier versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ bool shouldTint(float red, float green, float blue) {
float max = max(max(red, green), blue);
float delta = max - min;
//Calculate Saturation and Value components of HSV
float saturation = max == 0 ? 0 : delta / max;
float saturation = max == 0.0 ? 0.0 : delta / max;
float value = max;
return value >= 0.48 && saturation <= 0.15;
}

0 comments on commit 46894eb

Please sign in to comment.