Improve how block color is determined

This commit is contained in:
James Seibel
2021-02-28 16:35:46 -06:00
parent 306f575edd
commit f96a6dcecd
2 changed files with 4 additions and 1 deletions
@@ -494,7 +494,7 @@ public class LodChunk
for(int y = topStart; !foundBlock && y >= topMin && y < topMax; y += topIncrement)
{
int ci;
ci = chunkSections[i].getBlockState(x, y, z).getMaterial().getColor().colorValue;
ci = chunkSections[i].getBlockState(x, y, z).materialColor.colorValue;
if(ci == 0)
{
@@ -25,6 +25,9 @@ public net.minecraft.world.DimensionType field_236017_x_ # ambientLight
# make public the renderUpdateCount in GameRenderer
public net.minecraft.client.renderer.GameRenderer field_78529_t # rendererUpdateCount
# make public the materialColor in AbstractBlockState
public net.minecraft.block.AbstractBlock$AbstractBlockState field_235704_h_ # materialColor
#=====================#
# Examples from Forge #