-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
None
In all custom generated worlds, lightning strikes do not show.
The reason for this is the sendPacketNearby() method in PlayerList.java has this code:
this.server.getPlayerList().sendPacketNearby((EntityHuman) null, entity.locX, entity.locY, entity.locZ, 512.0D, this.worldProvider.getDimensionManager().getDimensionID(), new PacketPlayOutSpawnEntityWeather(entity));
In Minecraft 1.8.8 (lightning strikes showed just fine), the same code:
this.server.getPlayerList().sendPacketNearby((EntityHuman) null, entity.locX, entity.locY, entity.locZ, 512.0D, dimension, new PacketPlayOutSpawnEntityWeather(entity));
The issue here occured when the dimension parameter was changed to this.worldProvider.getDimensionManager().getDimensionID()