13
0
geforkt von Mirrors/Paper

SPIGOT-5509: Sleeping player does not eject bed when teleported

Dieser Commit ist enthalten in:
md_5 2020-01-11 14:14:23 +11:00
Ursprung 99cf10e4c7
Commit d208733e70

Datei anzeigen

@ -643,6 +643,11 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
// If this player is riding another entity, we must dismount before teleporting.
entity.stopRiding();
// SPIGOT-5509: Wakeup, similar to riding
if (this.isSleeping()) {
this.wakeup(false);
}
// Update the From Location
from = event.getFrom();
// Grab the new To Location dependent on whether the event was cancelled.