9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 18:49:06 +00:00
This commit is contained in:
Daniel Mills
2019-11-01 04:27:47 -04:00
parent 00d4f7640e
commit 373d75609a
6 changed files with 253 additions and 114 deletions

View File

@@ -150,7 +150,7 @@ public class Iris extends JavaPlugin implements Listener
else if(p.startsWith("^"))
{
double c = M.percentRange(value, -11, 37);
double c = M.lerpInverse(-11, 37, value);
double f = 32 + (c * (1.8));
v = F.f(c, Integer.valueOf(p.substring(1))) + " \u00B0C / " + F.f(f, Integer.valueOf(p.substring(1))) + " \u00B0F";
}