This is a fix for what Berta24#2939 discovered: If a ethereal shard is very large, it will crash the client due to an overflow in the color calculation. I extended the variables to long, but also made sure the calculated color will always be valid, and added a try-catch to not crash the whole client when the rendereing fails.
This is a fix for what Berta24#2939 discovered: If a ethereal shard is very large, it will crash the client due to an overflow in the color calculation. I extended the variables to long, but also made sure the calculated color will always be valid, and added a try-catch to not crash the whole client when the rendereing fails.