Skip to content

Commit

Permalink
fix(tsl): IN RANGE comparator not working with integer fields
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoodie committed Sep 27, 2019
1 parent 74ea172 commit 4d78a83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -5,7 +5,7 @@ org.gradle.daemon=false

mod_id=twitchspawn
mod_group=net.programmer.igoodie
mod_version=1.3.7
mod_version=1.3.8

minecraft_version=1.14.4
forge_version=28.0.83
Expand Down
Expand Up @@ -40,7 +40,7 @@ public boolean compare(Object leftHand) {
if (!(leftHand instanceof Number))
return false;

double number = (Double) leftHand;
double number = ((Number) leftHand).doubleValue();

return min <= number && number <= max;
}
Expand Down

0 comments on commit 4d78a83

Please sign in to comment.