2021-06-11 14:02:28 +02: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/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
2024-06-13 16:45:27 +02:00
|
|
|
index a4d5e0ffbdade4e1b15d30de6e60feddda697c24..dd5a32360f4b49e9544009d3874da3f4af7b386a 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
2024-06-13 16:45:27 +02:00
|
|
|
@@ -3608,7 +3608,7 @@ public abstract class LivingEntity extends Entity implements Attackable {
|
2021-06-11 14:02:28 +02:00
|
|
|
Entity entity = this.getVehicle();
|
|
|
|
|
2024-01-21 13:56:22 +01:00
|
|
|
super.stopRiding(suppressCancellation); // Paper - Force entity dismount during teleportation
|
2023-06-08 01:20:26 +02:00
|
|
|
- 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
|
2021-06-11 14:02:28 +02:00
|
|
|
this.dismountVehicle(entity);
|
|
|
|
}
|
|
|
|
|