summaryrefslogtreecommitdiffhomepage
path: root/patches/server/0383-Don-t-check-chunk-for-portal-on-world-gen-entity-add.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0383-Don-t-check-chunk-for-portal-on-world-gen-entity-add.patch')
-rw-r--r--patches/server/0383-Don-t-check-chunk-for-portal-on-world-gen-entity-add.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0383-Don-t-check-chunk-for-portal-on-world-gen-entity-add.patch b/patches/server/0383-Don-t-check-chunk-for-portal-on-world-gen-entity-add.patch
new file mode 100644
index 0000000000..24d5f2e649
--- /dev/null
+++ b/patches/server/0383-Don-t-check-chunk-for-portal-on-world-gen-entity-add.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Aikar <[email protected]>
+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/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
+index 8920099eb488c37b036b7bd97fbd4f7db505c77c..906e8589483b93bcdb55677f7f942f6c7a89caf8 100644
+--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
++++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
+@@ -3659,7 +3659,7 @@ public abstract class LivingEntity extends Entity implements Attackable {
+ Entity entity = this.getVehicle();
+
+ super.stopRiding(suppressCancellation); // Paper - Force entity dismount during teleportation
+- if (entity != null && entity != this.getVehicle() && !this.level().isClientSide) {
++ if (entity != null && entity != this.getVehicle() && !this.level().isClientSide && entity.valid) { // Paper - don't process on world gen
+ this.dismountVehicle(entity);
+ }
+