mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-21 15:23:50 -07:00
fix more compile errors
This commit is contained in:
@@ -243,10 +243,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
|
||||
+ // Paper start - Teleport API
|
||||
+ @org.jetbrains.annotations.ApiStatus.Experimental
|
||||
+ public PlayerTeleportEvent(@NotNull final Player player, @NotNull final Location from, @Nullable final Location to, @NotNull final TeleportCause cause, boolean dismounted, @NotNull java.util.Set<io.papermc.paper.entity.TeleportFlag.@NotNull Relative> teleportFlagSet) {
|
||||
+ public PlayerTeleportEvent(@NotNull final Player player, @NotNull final Location from, @Nullable final Location to, @NotNull final TeleportCause cause, @NotNull java.util.Set<io.papermc.paper.entity.TeleportFlag.@NotNull Relative> teleportFlagSet) {
|
||||
+ super(player, from, to);
|
||||
+
|
||||
+ this.dismounted = dismounted;
|
||||
+ this.teleportFlagSet = teleportFlagSet;
|
||||
+ this.cause = cause;
|
||||
+ }
|
||||
@@ -264,8 +262,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * Gets if the player will be dismounted in this teleportation.
|
||||
+ *
|
||||
+ * @return dismounted or not
|
||||
+ * @deprecated dismounting on tp is no longer controlled by the server
|
||||
+ */
|
||||
+ @org.jetbrains.annotations.ApiStatus.Experimental
|
||||
+ @Deprecated(forRemoval = true)
|
||||
+ public boolean willDismountPlayer() {
|
||||
+ return this.dismounted;
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user