Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Don't try to teleport to a null world. Fixes BUKKIT-5145
Dieser Commit ist enthalten in:
Ursprung
a565486ee1
Commit
24ff27b408
@ -1765,7 +1765,7 @@ public abstract class Entity {
|
|||||||
EntityPortalEvent event = new EntityPortalEvent(this.getBukkitEntity(), enter, exit, agent);
|
EntityPortalEvent event = new EntityPortalEvent(this.getBukkitEntity(), enter, exit, agent);
|
||||||
event.useTravelAgent(useTravelAgent);
|
event.useTravelAgent(useTravelAgent);
|
||||||
event.getEntity().getServer().getPluginManager().callEvent(event);
|
event.getEntity().getServer().getPluginManager().callEvent(event);
|
||||||
if (event.isCancelled() || event.getTo() == null || !this.isAlive()) {
|
if (event.isCancelled() || event.getTo() == null || event.getTo().getWorld() == null || !this.isAlive()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
exit = event.useTravelAgent() ? event.getPortalTravelAgent().findOrCreate(event.getTo()) : event.getTo();
|
exit = event.useTravelAgent() ? event.getPortalTravelAgent().findOrCreate(event.getTo()) : event.getTo();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren