@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
17
17
along with this program. If not, see <https://www.gnu.org/licenses/>.
18
18
19
19
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
20
- index 65c4c0690874c29814098448b6cc6077a1e8c566..549f6fcf5ded0563e665673a797fa92496786c3b 100644
20
+ index e7fec5d2d54dc02bad76cb4100f597208ae46912..2344ee5f7c76d4c0eff375826e75cb97e104c3f1 100644
21
21
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
22
22
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
23
23
@@ -264,6 +264,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
@@ -29,18 +29,18 @@ index 65c4c0690874c29814098448b6cc6077a1e8c566..549f6fcf5ded0563e665673a797fa924
29
29
}
30
30
31
31
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
32
- index d53cc5f0952be042629cd8e6e319157d0afb14c7..9b72d1e90ceb531088ace34ff11db12a4bcba2b7 100644
32
+ index 9bea9f41cbffaacb77b27636086c57b6f8cb17d7..dcdf06516b0bcfaa191ed82f4236602710d11e44 100644
33
33
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
34
34
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
35
- @@ -1420 ,6 +1420 ,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
35
+ @@ -1422 ,6 +1422 ,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
36
36
// Paper start - Teleport passenger API
37
37
// Don't allow teleporting between worlds while keeping passengers
38
38
if (ignorePassengers && entity.isVehicle() && location.getWorld() != this.getWorld()) {
39
39
+ if (!new org.purpurmc.purpur.event.entity.EntityTeleportHinderedEvent(entity.getBukkitEntity(), org.purpurmc.purpur.event.entity.EntityTeleportHinderedEvent.Reason.IS_VEHICLE, cause).callEvent()) // Purpur - Add EntityTeleportHinderedEvent
40
40
return false;
41
41
}
42
42
43
- @@ -1441 ,6 +1442 ,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
43
+ @@ -1443 ,6 +1444 ,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
44
44
}
45
45
46
46
if (entity.isVehicle() && !ignorePassengers) { // Paper - Teleport API
0 commit comments