mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 02:25:28 +01:00
[ci skip] Fix typos
This commit is contained in:
parent
c28d89d625
commit
55475f05d5
@ -36,7 +36,7 @@ index 0000000000000000000000000000000000000000..544eec787ea837f7d29df6519255840d
|
||||
+}
|
||||
diff --git a/src/main/java/io/papermc/paper/entity/TeleportFlag.java b/src/main/java/io/papermc/paper/entity/TeleportFlag.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..bbc006152ac7885e1ffd05e84073ac1af45cc1a3
|
||||
index 0000000000000000000000000000000000000000..9dbbe1f3cfda3b1862fd9cf1ef9853329eda750c
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/io/papermc/paper/entity/TeleportFlag.java
|
||||
@@ -0,0 +1,113 @@
|
||||
@ -57,7 +57,7 @@ index 0000000000000000000000000000000000000000..bbc006152ac7885e1ffd05e84073ac1a
|
||||
+ /**
|
||||
+ * Note: These flags only work on {@link org.bukkit.entity.Player} entities.
|
||||
+ * <p>
|
||||
+ * Relative flags enable a player to not loose their velocity in the flag-specific axis/context when teleporting.
|
||||
+ * Relative flags enable a player to not lose their velocity in the flag-specific axis/context when teleporting.
|
||||
+ *
|
||||
+ * @apiNote The relative flags exposed in the API do *not* mirror all flags known to vanilla, as relative flags concerning
|
||||
+ * the position are non-applicable given teleports always expect an absolute location.
|
||||
@ -65,19 +65,19 @@ index 0000000000000000000000000000000000000000..bbc006152ac7885e1ffd05e84073ac1a
|
||||
+ */
|
||||
+ enum Relative implements TeleportFlag {
|
||||
+ /**
|
||||
+ * Configures the player to not loose velocity in their x axis during the teleport.
|
||||
+ * Configures the player to not lose velocity in their x axis during the teleport.
|
||||
+ */
|
||||
+ VELOCITY_X,
|
||||
+ /**
|
||||
+ * Configures the player to not loose velocity in their y axis during the teleport.
|
||||
+ * Configures the player to not lose velocity in their y axis during the teleport.
|
||||
+ */
|
||||
+ VELOCITY_Y,
|
||||
+ /**
|
||||
+ * Configures the player to not loose velocity in their z axis during the teleport.
|
||||
+ * Configures the player to not lose velocity in their z axis during the teleport.
|
||||
+ */
|
||||
+ VELOCITY_Z,
|
||||
+ /**
|
||||
+ * Configures the player to not loose velocity in their current rotation during the teleport.
|
||||
+ * Configures the player to not lose velocity in their current rotation during the teleport.
|
||||
+ */
|
||||
+ VELOCITY_ROTATION;
|
||||
+ /**
|
||||
|
@ -6,7 +6,7 @@ Subject: [PATCH] Only erase allay memory on non-item targets
|
||||
Spigot incorrectly instanceOf checks the EntityTargetEvent#getTarget
|
||||
against the internal ItemEntity type and removes the nearest wanted item
|
||||
memory if said instanceOf check fails, (which is always the case)
|
||||
causing allays to behave differently as they constantly loose their
|
||||
causing allays to behave differently as they constantly lose their
|
||||
target item.
|
||||
|
||||
This commit fixes the faulty behaviour by instance performing a check
|
||||
|
Loading…
Reference in New Issue
Block a user