Fix entity tracking when the player is the vehicle

Fixes GH-378
This commit is contained in:
Zach Brown 2016-07-31 15:22:25 -05:00
parent 10961ebac6
commit 55e3d057b8

View file

@ -73,7 +73,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ return false;
+ }
+ private static boolean isTrackedBy(Entity entity, EntityPlayer entityplayer) {
+ return entity.tracker != null && entity.tracker.trackedPlayers.contains(entityplayer);
+ return entity == entityplayer || entity.tracker != null && entity.tracker.trackedPlayers.contains(entityplayer);
+ }
+ private void updatePassengers(EntityPlayer player) {
+ if (tracker.isVehicle()) {