SPIGOT-7204: Add TeleportCause#DISMOUNT

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2022-12-13 19:22:46 +11:00
parent 37d4b08ff4
commit 8fa77efef6

View File

@ -593,7 +593,7 @@
+ // CraftBukkit start - Delegate to teleport(Location)
public void dismount(double d0, double d1, double d2, float f, float f1) {
- this.teleport(d0, d1, d2, f, f1, Collections.emptySet(), true);
+ this.dismount(d0, d1, d2, f, f1, PlayerTeleportEvent.TeleportCause.UNKNOWN);
+ this.dismount(d0, d1, d2, f, f1, PlayerTeleportEvent.TeleportCause.DISMOUNT);
+ }
+
+ public void dismount(double d0, double d1, double d2, float f, float f1, PlayerTeleportEvent.TeleportCause cause) {