mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Fix color parsing
This commit is contained in:
parent
533b1f1cf4
commit
7487d3fb04
@ -200,8 +200,8 @@ namespace ConformalDecals.Util {
|
||||
|
||||
case 3:
|
||||
if (!float.TryParse(split[0], out var red)) return false;
|
||||
if (!float.TryParse(split[0], out var green)) return false;
|
||||
if (!float.TryParse(split[0], out var blue)) return false;
|
||||
if (!float.TryParse(split[1], out var green)) return false;
|
||||
if (!float.TryParse(split[2], out var blue)) return false;
|
||||
|
||||
value.r = (byte) (red * 0xFF);
|
||||
value.g = (byte) (green * 0xFF);
|
||||
|
Loading…
Reference in New Issue
Block a user