2020-07-05 19:00:07 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Sun, 5 Jul 2020 14:59:31 -0400
|
|
|
|
Subject: [PATCH] Don't check chunk for portal on world gen entity add
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java
|
2020-08-25 02:22:08 +00:00
|
|
|
index 01de9a9c965ce156f53577d19f1ca9a138657720..b92e74349b402b6a8687876073f974128fe242a4 100644
|
2020-07-05 19:00:07 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityLiving.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityLiving.java
|
2020-08-25 02:22:08 +00:00
|
|
|
@@ -2917,7 +2917,7 @@ public abstract class EntityLiving extends Entity {
|
2020-07-05 19:00:07 +00:00
|
|
|
Entity entity = this.getVehicle();
|
|
|
|
|
|
|
|
super.stopRiding(suppressCancellation); // Paper - suppress
|
|
|
|
- if (entity != null && entity != this.getVehicle() && !this.world.isClientSide) {
|
|
|
|
+ if (entity != null && entity != this.getVehicle() && !this.world.isClientSide && entity.valid) { // Paper - don't process on world gen
|
|
|
|
this.a(entity);
|
|
|
|
}
|
|
|
|
|