Improve how block color is determined
This commit is contained in:
@@ -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 #
|
||||
|
||||
Reference in New Issue
Block a user