13
0
geforkt von Mirrors/Paper

Add null-check to "Entity Tracking Improvement"

Dieser Commit ist enthalten in:
Gabscap 2016-05-06 16:09:52 +02:00
Ursprung b6da0fdf02
Commit b9cdcf1d68

Datei anzeigen

@ -77,7 +77,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ }
+ private void updatePassengers(EntityPlayer player) {
+ if (tracker.isVehicle()) {
+ tracker.passengers.forEach((e) -> e.tracker.updatePlayer(player));
+ tracker.passengers.forEach((e) -> {
+ if (e.tracker != null) {
+ e.tracker.updatePlayer(player);
+ }
+ });
+ player.playerConnection.sendPacket(new PacketPlayOutMount(this.tracker));
+ }
+ }