2021-06-14 07:32:56 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: kickash32 <kickash32@gmail.com>
|
|
|
|
Date: Fri, 15 May 2020 01:10:03 -0400
|
|
|
|
Subject: [PATCH] Ensure safe gateway teleport
|
|
|
|
|
2024-03-10 01:08:44 +01:00
|
|
|
== AT ==
|
|
|
|
public net.minecraft.world.entity.Entity teleportPassengers()V
|
2021-06-14 07:32:56 +02:00
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java
|
2024-03-10 01:08:44 +01:00
|
|
|
index a57743b21b6075ba01def0a41fecbf90b2df7f85..098fde8200a11f91f934ddab6b1486dac4014dfe 100644
|
2021-06-14 07:32:56 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java
|
2024-03-10 01:08:44 +01:00
|
|
|
@@ -220,6 +220,7 @@ public class TheEndGatewayBlockEntity extends TheEndPortalBlockEntity {
|
2021-06-14 07:32:56 +02:00
|
|
|
|
2024-03-10 01:08:44 +01:00
|
|
|
entity1.setPortalCooldown();
|
|
|
|
((ServerPlayer) entity1).connection.teleport(teleEvent.getTo());
|
|
|
|
+ entity1.teleportPassengers(); // Paper - teleport passengers as well, preventing invisible passengers post teleport.
|
|
|
|
TheEndGatewayBlockEntity.triggerCooldown(world, pos, state, blockEntity); // CraftBukkit - call at end of method
|
|
|
|
return;
|
2021-06-14 07:32:56 +02:00
|
|
|
|