Random-Things icon indicating copy to clipboard operation
Random-Things copied to clipboard

Update RenderUtils.java

Open ben-mkiv opened this issue 4 years ago • 0 comments

This PR addresses an issue which i ran into when using RandomThings (might be related to OpenTerrainGenerator or JustEnoughIDs)

I'm not sure if this is the best way to fix it as im not familiar with biome related stuff

The amount of changed lines is due to that i've moved some duplicated code to a separate function call, the main logic change is on the linked line, which checks if the biome has any type assigned before manipulating the biome color based on the biome type

https://github.com/lumien231/Random-Things/blob/8235fa7574699d4b5ccff16aa62c79379274cadd/src/main/java/lumien/randomthings/util/client/RenderUtils.java#L113

crash report of rendering a cable facade with biome stone in JEI https://pastebin.com/raw/NiiSjdWx

ben-mkiv avatar Oct 07 '19 02:10 ben-mkiv