Details
-
Type:
Bug
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: Minecraft 1.11.2, 20w07a
-
Fix Version/s: None
-
Confirmation Status:Confirmed
-
Category:(Unassigned)
Description
The bug
Lightning strikes are randomized server- and client-side, while they should only be randomized server-side. This can result in too long or too short lightning strikes client-side. For example the player is not seeing lightning bolts anymore but is still damaged.
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The constructor net.minecraft.entity.effect.EntityLightningBolt.EntityLightningBolt(World, double, double, double, boolean) chooses the life time client-side and the method net.minecraft.entity.effect.EntityLightningBolt.onUpdate() randomizes how long the lightning strike will take.
Attachments
Issue Links
- relates to
-
MC-2157 Particles emitted from dragon egg when teleporting are not pointing in the correct direction
- Reopened