From 62802db4ac866323fca04ac1b2801b644d3a802d Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 1 Jul 2020 05:42:22 -0400 Subject: [PATCH] Allow teleporting through end gateways as a passenger/vehicle Vanilla allows this now for same world teleports Fixes #3735 --- Spigot-Server-Patches/Ensure-safe-gateway-teleport.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Ensure-safe-gateway-teleport.patch b/Spigot-Server-Patches/Ensure-safe-gateway-teleport.patch index 1d08fe4d3..477b3b7fe 100644 --- a/Spigot-Server-Patches/Ensure-safe-gateway-teleport.patch +++ b/Spigot-Server-Patches/Ensure-safe-gateway-teleport.patch @@ -17,7 +17,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - this.a((Entity) list.get(this.world.random.nextInt(list.size()))); + // Paper start + for (Entity entity : list) { -+ if (!entity.isPassenger() && !entity.isVehicle() && entity.canPortal()) { ++ if (entity.canPortal()) { + this.a(entity); + break; + }