13
0
geforkt von Mirrors/Paper

Check TravelAgent.findOrCreate(Location) for null; Fixes BUKKIT-3590

If a custom TravelAgent is used and returns null for findOrCreate method
a NullPointerException will occur.
Conflicts:
	src/main/java/net/minecraft/server/PlayerList.java
Dieser Commit ist enthalten in:
EdGruberman 2013-02-09 22:01:39 -07:00 committet von feildmaster
Ursprung 5bb81b75c7
Commit d06e597ca5

Datei anzeigen

@ -460,6 +460,9 @@ public abstract class PlayerList {
} }
exit = event.useTravelAgent() ? event.getPortalTravelAgent().findOrCreate(event.getTo()) : event.getTo(); exit = event.useTravelAgent() ? event.getPortalTravelAgent().findOrCreate(event.getTo()) : event.getTo();
if (exit == null) {
return;
}
exitWorld = ((CraftWorld) exit.getWorld()).getHandle(); exitWorld = ((CraftWorld) exit.getWorld()).getHandle();
Vector velocity = entityplayer.getBukkitEntity().getVelocity(); Vector velocity = entityplayer.getBukkitEntity().getVelocity();