mojira.dev
MC-92057

Particles are dark Y>=256

Particles simply appear dark at altitude Y=256 and above.

Does not occur in the Nether and the End.


Code analysis by @unknown can be found in this comment.

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media][media]
[Mod]Les3awe
  • New Screenshots. 🙂

marcono1234

Please link to this comment in the description

The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

The reason for this is that the method net.minecraft.client.particle.EntityFX.func_189214_a(float) returns 0 if the block position is not loaded, which is the case for 0 > y > 255.
Instead it should always call the method net.minecraft.world.World.getCombinedLight(BlockPos, int) which handles these cases correctly.

public int func_189214_a(float p_189214_1_)
{
    BlockPos blockpos = new BlockPos(this.field_187126_f, this.field_187127_g, this.field_187128_h);
    // Replaced this
    //return this.field_187122_b.isBlockLoaded(blockpos) ? this.field_187122_b.getCombinedLight(blockpos, 0) : 0;
    return this.field_187122_b.getCombinedLight(blockpos, 0);
}
migrated

At least it's fixed for me in 1.10-pre1. Can anyone confirm?

SunCat

Confirm the fix

migrated

This bug was fixed in 1.9.3. If you can, could you change the fixed version?

migrated

No, 1.9.3 is an archived version and can no longer be selected.

migrated

(Unassigned)

Confirmed

altitude, particle, y-coordinate

Minecraft 1.8.8, Minecraft 15w44b, Minecraft 15w45a, Minecraft 15w46a, Minecraft 15w47a, ..., Minecraft 15w49b, Minecraft 15w50a, Minecraft 15w51b, Minecraft 16w06a, Minecraft 1.9 Pre-Release 1

Minecraft 1.9.4

Retrieved