Current non compilable status of all patches - THIS IS NOT READY

THERE IS STILL NO ETA. GOBLINS WILL EAT YOU.
This commit is contained in:
Aikar
2020-06-25 21:58:00 -04:00
parent cfd598512a
commit bc5acdddad
43 changed files with 316 additions and 1533 deletions

View File

@@ -14,16 +14,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
List<Entity> list = this.world.a(Entity.class, new AxisAlignedBB(this.getPosition()));
-
- if (!list.isEmpty()) {
- this.a(((Entity) list.get(0)).getRootVehicle());
- }
+ // Paper start
+ for (Entity entity : list) {
+ if (!entity.isPassenger() && !entity.isVehicle() && entity.canPortal()) {
+ this.a(entity);
+ break;
+ }
- this.a((Entity) list.get(this.world.random.nextInt(list.size())));
+ // Paper start
+ for (Entity entity : list) {
+ if (!entity.isPassenger() && !entity.isVehicle() && entity.canPortal()) {
+ this.a(entity);
+ break;
+ }
+ // Paper end
}
+ // Paper end
if (this.age % 2400L == 0L) {
this.h();