Allow teleporting through end gateways as a passenger/vehicle

Vanilla allows this now for same world teleports

Fixes #3735
This commit is contained in:
Aikar 2020-07-01 05:42:22 -04:00
parent be5f765e93
commit 62802db4ac

View File

@ -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;
+ }