GTNewHorizons / ThaumicHorizons

Authorized Continuation
GNU Lesser General Public License v3.0
7 stars 19 forks source link

Fix for very large Ethereal shard nodes #26

Closed Savallator closed 2 years ago

Savallator commented 2 years ago

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.