geforkt von Mirrors/Paper
SPIGOT-7872: Fix crash with event-modified teleports
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
9f0a790b3d
Commit
7eb7761ca0
@ -573,7 +573,7 @@
|
|||||||
+ this.cserver.getPluginManager().callEvent(event);
|
+ this.cserver.getPluginManager().callEvent(event);
|
||||||
+
|
+
|
||||||
+ if (event.isCancelled() || !to.equals(event.getTo())) {
|
+ if (event.isCancelled() || !to.equals(event.getTo())) {
|
||||||
+ set.clear(); // Can't relative teleport
|
+ set = Collections.emptySet(); // Can't relative teleport
|
||||||
+ to = event.isCancelled() ? event.getFrom() : event.getTo();
|
+ to = event.isCancelled() ? event.getFrom() : event.getTo();
|
||||||
+ d0 = to.getX();
|
+ d0 = to.getX();
|
||||||
+ d1 = to.getY();
|
+ d1 = to.getY();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren